mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 07:07:39 +01:00
Fix typo that prevented connection timeouts from being set properly.
This commit is contained in:
parent
4254e276fb
commit
8923af5785
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue