mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix a crash when you delete a user with more than one attached client
Fixes #403
This commit is contained in:
@@ -112,9 +112,8 @@ CUser::~CUser() {
|
||||
}
|
||||
|
||||
// Delete clients
|
||||
for (unsigned int c = 0; c < m_vClients.size(); c++) {
|
||||
CClient* pClient = m_vClients[c];
|
||||
CZNC::Get().GetManager().DelSockByAddr(pClient);
|
||||
while (!m_vClients.empty()) {
|
||||
CZNC::Get().GetManager().DelSockByAddr(m_vClients[0]);
|
||||
}
|
||||
m_vClients.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user