mirror of
https://github.com/znc/znc.git
synced 2026-08-05 00:13:22 +02:00
Update Csocket to b5185dc
> Fix IsConnected() to return false when Disconnected() gets called
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user