1
This commit is contained in:
parent
6f46958b5b
commit
2cd65abce7
@ -264,6 +264,7 @@ void GGListener::OnClientDisconnect(int socket_handle)
|
|||||||
for (auto& handler_wp : del_handlers) {
|
for (auto& handler_wp : del_handlers) {
|
||||||
if (!handler_wp.expired()) {
|
if (!handler_wp.expired()) {
|
||||||
handler_wp.lock()->cb(a8::Args({socket_handle}));
|
handler_wp.lock()->cb(a8::Args({socket_handle}));
|
||||||
|
RemoveSocketDisconnectHandler(handler_wp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
disconnect_listener_hash_.erase(itr);
|
disconnect_listener_hash_.erase(itr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user