Skip to content

Commit

Permalink
Fix a crash when you delete a user with more than one attached client
Browse files Browse the repository at this point in the history
Fixes #403
  • Loading branch information
kylef committed Sep 17, 2013
1 parent 8c46fa8 commit e7ff40f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/User.cpp
Expand Up @@ -112,9 +112,8 @@ CUser::~CUser() {
} }


// Delete clients // Delete clients
for (unsigned int c = 0; c < m_vClients.size(); c++) { while (!m_vClients.empty()) {
CClient* pClient = m_vClients[c]; CZNC::Get().GetManager().DelSockByAddr(m_vClients[0]);
CZNC::Get().GetManager().DelSockByAddr(pClient);
} }
m_vClients.clear(); m_vClients.clear();


Expand Down

0 comments on commit e7ff40f

Please sign in to comment.