mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Stop overwriting OP_WRITE when writing in ConnectionHandler c'tor
This commit is contained in:
parent
189605374c
commit
ff52164921
@ -57,7 +57,7 @@ public class NioClientManager extends AbstractExecutionThreadService implements
|
||||
try {
|
||||
if (sc.finishConnect()) {
|
||||
log.info("Successfully connected to {}", sc.socket().getRemoteSocketAddress());
|
||||
key.interestOps(SelectionKey.OP_READ).attach(handler);
|
||||
key.interestOps(key.interestOps() | SelectionKey.OP_READ).attach(handler);
|
||||
handler.parser.connectionOpened();
|
||||
} else {
|
||||
log.error("Failed to connect to {}", sc.socket().getRemoteSocketAddress());
|
||||
|
Loading…
Reference in New Issue
Block a user