diff options
-rw-r--r-- | Bus/Ivy/ThreadedSocket.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bus/Ivy/ThreadedSocket.cxx b/Bus/Ivy/ThreadedSocket.cxx index 19670f7..31bcf18 100644 --- a/Bus/Ivy/ThreadedSocket.cxx +++ b/Bus/Ivy/ThreadedSocket.cxx @@ -138,7 +138,8 @@ void CThreadedSocket::Close() {
if (m_hSocket != INVALID_SOCKET)
{
- ASSERT(SOCKET_ERROR != closesocket(m_hSocket));
+ //ASSERT(SOCKET_ERROR != closesocket(m_hSocket));
+ closesocket(m_hSocket); // close silently
m_hSocket = INVALID_SOCKET;
}
@@ -419,8 +420,7 @@ UINT CThreadedSocket::SocketReader( ) TRACE( "CThreadedSocket::SocketReader( select error thread_id =( %d) )\n",reader_id);
- if (m_hSocket != INVALID_SOCKET)
- Close();
+ Close();
h_reader = NULL;
return sock_err;
break;
|