Avoid waiting for a connection event if SocketChannel already connected