summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ivy/ThreadedSocket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ivy/ThreadedSocket.cxx b/Ivy/ThreadedSocket.cxx
index be2bdf0..f14d79a 100644
--- a/Ivy/ThreadedSocket.cxx
+++ b/Ivy/ThreadedSocket.cxx
@@ -161,7 +161,7 @@ int CThreadedSocket::Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen)
FD_SET(m_hSocket, &writefds);
ok = connect(m_hSocket, lpSockAddr, nSockAddrLen);
- if ( !ok )
+ if ( ok != 0 )
{
int err = this->GetLastError();
if ( err == 0 ) return err;