summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ivy/ThreadedSocket.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ivy/ThreadedSocket.cxx b/Ivy/ThreadedSocket.cxx
index 42a8216..2f32a26 100644
--- a/Ivy/ThreadedSocket.cxx
+++ b/Ivy/ThreadedSocket.cxx
@@ -133,12 +133,12 @@ void CThreadedSocket::Close()
//if ( thread ) // On fait de l'auto delete mais dans le cas de terminaison anormale l'object reste ????!!!
// delete thread;
// TRACE("CThreadedSocket waiting for thread end ...\n");
- if ( h_reader ) WaitForSingleObject( h_reader, INFINITE );
+ if ( h_reader ) WaitForSingleObject( h_reader, 5000 );
// wake up writer
if ( h_writer )
{
err = ReleaseSemaphore(send_count, 1, &PreviousCount);
- WaitForSingleObject( h_writer, INFINITE );
+ WaitForSingleObject( h_writer, 5000 );
}
// TRACE("CThreadedSocket all thread ended\n");
}
@@ -456,7 +456,7 @@ UINT CThreadedSocket::SocketReader( )
if (m_hSocket != INVALID_SOCKET)
Close();
h_reader = NULL;
-// TRACE( "CThreadedSocket::SocketReader( END thread_id =( 0x%x) )\n",reader_id);
+ TRACE( "CThreadedSocket::SocketReader( END thread_id =( 0x%x) )\n",reader_id);
return 0;
}