onClose confusion

This commit is contained in:
Michael Davidsaver
2020-02-03 14:57:50 -08:00
parent 24d9eb49f1
commit 95ed4b2993
3 changed files with 10 additions and 2 deletions
+9
View File
@@ -303,6 +303,15 @@ void ServerConn::cleanup()
auto self = std::move(it->second);
iface->server->connections.erase(it);
for(auto& pair : self->opByIOID) {
if(pair.second->onClose)
pair.second->onClose("");
}
for(auto& pair : self->chanBySID) {
if(pair.second->onClose)
pair.second->onClose("");
}
// delete this
}
}