diff options
-rw-r--r-- | Bus/Ivy/ThreadedSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bus/Ivy/ThreadedSocket.cxx b/Bus/Ivy/ThreadedSocket.cxx index c93ffa9..19670f7 100644 --- a/Bus/Ivy/ThreadedSocket.cxx +++ b/Bus/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;
|