3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

Fix typo that prevented connection timeouts from being set properly.

This commit is contained in:
Mike Hearn 2013-01-15 14:17:15 +01:00
parent 4254e276fb
commit 8923af5785

View File

@ -219,7 +219,7 @@ public class PeerGroup extends AbstractIdleService {
ExecutorService workerExecutor = Executors.newCachedThreadPool(new PeerGroupThreadFactory());
NioClientSocketChannelFactory channelFactory = new NioClientSocketChannelFactory(bossExecutor, workerExecutor);
ClientBootstrap bs = new ClientBootstrap(channelFactory);
bs.setOption("connectionTimeoutMillis", 2000);
bs.setOption("connectTimeoutMillis", 2000);
return bs;
}