mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -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