Do nothing rather than assert when socket no longer found for write.

Not sure if this is a preventable error.
This commit is contained in:
ehouse 2005-09-05 15:50:28 +00:00
parent 912859be39
commit 709108f8c3

View file

@ -59,17 +59,24 @@ class SocketWriteLock {
#ifdef DEBUG_LOCKS
logf( "tlm %p for socket %d", m_mutex, socket );
#endif
if ( m_mutex != NULL ) {
pthread_mutex_lock( m_mutex );
}
#ifdef DEBUG_LOCKS
logf( "slm %p for socket %d", m_mutex, socket );
#endif
}
~SocketWriteLock() {
#ifdef DEBUG_LOCKS
logf( "ULM %p for socket %d", m_mutex, m_socket );
#endif
if ( m_mutex != NULL ) {
pthread_mutex_unlock( m_mutex );
}
}
int socketFound() { return (int)(m_mutex != NULL); }
private:
int m_socket;