Avoid waiting for a connection event if the SocketChannel already connected.
Merge pull request #20 from danielfn/master

Avoid waiting for a connection event if SocketChannel already connected