mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 18:22:12 +01:00
Lower the priority of the networking thread to avoid competing with UI threads.
This commit is contained in:
parent
8e58839d81
commit
a9a7dd9e06
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user