diff options
Diffstat (limited to 'sal/osl/unx/socket.cxx')
-rw-r--r-- | sal/osl/unx/socket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index dd4055bab54d..15ce591bade9 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -1340,7 +1340,7 @@ void SAL_CALL osl_acquireSocket(oslSocket pSocket) void SAL_CALL osl_releaseSocket( oslSocket pSocket ) { - if( pSocket && 0 == osl_atomic_decrement( &(pSocket->m_nRefCount) ) ) + if( pSocket && osl_atomic_decrement( &(pSocket->m_nRefCount) ) == 0 ) { #if defined(CLOSESOCKET_DOESNT_WAKE_UP_ACCEPT) if ( pSocket->m_bIsAccepting ) |