summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/ThreadedSocket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ivy/ThreadedSocket.cxx b/Ivy/ThreadedSocket.cxx
index c93ffa9..19670f7 100644
--- a/Ivy/ThreadedSocket.cxx
+++ b/Ivy/ThreadedSocket.cxx
@@ -513,7 +513,7 @@ UINT CThreadedSocket::SocketWriter( )
break;
case SOCKET_ERROR:
TRACE( "CThreadedSocketException( select )\n");
- Close();
+ if (m_hSocket != INVALID_SOCKET) Close();
h_reader = NULL;
return sock_err;
break;