mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 18:25:51 +00:00
Fix typo that prevented connection timeouts from being set properly.
This commit is contained in:
parent
4254e276fb
commit
8923af5785
@ -219,7 +219,7 @@ public class PeerGroup extends AbstractIdleService {
|
|||||||
ExecutorService workerExecutor = Executors.newCachedThreadPool(new PeerGroupThreadFactory());
|
ExecutorService workerExecutor = Executors.newCachedThreadPool(new PeerGroupThreadFactory());
|
||||||
NioClientSocketChannelFactory channelFactory = new NioClientSocketChannelFactory(bossExecutor, workerExecutor);
|
NioClientSocketChannelFactory channelFactory = new NioClientSocketChannelFactory(bossExecutor, workerExecutor);
|
||||||
ClientBootstrap bs = new ClientBootstrap(channelFactory);
|
ClientBootstrap bs = new ClientBootstrap(channelFactory);
|
||||||
bs.setOption("connectionTimeoutMillis", 2000);
|
bs.setOption("connectTimeoutMillis", 2000);
|
||||||
return bs;
|
return bs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user