3
0
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:
Matt Corallo 2014-08-18 05:06:00 +00:00 committed by Mike Hearn
parent 189605374c
commit ff52164921

View File

@ -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());