Lower the priority of the networking thread to avoid competing with UI threads.

This commit is contained in:
Mike Hearn 2014-01-15 15:11:31 +01:00
parent 8e58839d81
commit a9a7dd9e06

View File

@ -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) {