Update Csocket to b5185dc

> Fix IsConnected() to return false when Disconnected() gets called
This commit is contained in:
J-P Nurmi
2014-11-12 21:36:14 +01:00
parent 24a72d9a32
commit dd9c2b70d3
+3
View File
@@ -3410,7 +3410,10 @@ void CSocketManager::DelSock( size_t iPos )
if( pSock->GetCloseType() != Csock::CLT_DEREFERENCE )
{
if( pSock->IsConnected() )
{
pSock->SetIsConnected( false );
pSock->Disconnected(); // only call disconnected event if connected event was called (IE IsConnected was set)
}
m_iBytesRead += pSock->GetBytesRead();
m_iBytesWritten += pSock->GetBytesWritten();