diff options
Diffstat (limited to 'node/TcpSocket.cpp')
| -rw-r--r-- | node/TcpSocket.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/TcpSocket.cpp b/node/TcpSocket.cpp index 83169d12..dce7d3a7 100644 --- a/node/TcpSocket.cpp +++ b/node/TcpSocket.cpp @@ -159,6 +159,9 @@ bool TcpSocket::notifyAvailableForWrite(const SharedPtr<Socket> &self,SocketMana { Mutex::Lock _l(_writeLock); + if (_connecting) + _connecting = false; + if (_outptr) { int n = (int)::send(_sock,_outbuf,_outptr,0); if (n < 0) { |
