mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 05:27:17 +00:00
Lower the priority of the networking thread to avoid competing with UI threads.
This commit is contained in:
@@ -89,6 +89,7 @@ public class NioClientManager extends AbstractExecutionThreadService implements
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
|
||||
while (isRunning()) {
|
||||
SocketChannelAndParser conn;
|
||||
while ((conn = newConnectionChannels.poll()) != null) {
|
||||
|
||||
Reference in New Issue
Block a user