Ensures that COMSIG_PARENT_QDELETING is sent before client Destroy. (#64536)

I want to let logic rely on this, so I'ma just ensure it can
This commit is contained in:
LemonInTheDark
2022-01-30 01:22:18 -08:00
committed by GitHub
parent 4421bfa629
commit d253a3b767
+4 -1
View File
@@ -491,6 +491,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
/client/Del()
if(!gc_destroyed)
// Yes this is the same as what's found in qdel(). Yes it does need to be here
// Get off my back
SEND_SIGNAL(src, COMSIG_PARENT_QDELETING, TRUE)
Destroy() //Clean up signals and timers.
return ..()
@@ -501,7 +504,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if (!stealth_admin)
deadchat_broadcast(" has disconnected.", "<b>[mob][mob.get_realname_string()]</b>", follow_target = mob, turf_target = get_turf(mob), message_type = DEADCHAT_LOGIN_LOGOUT, admin_only=!announce_join)
mob.become_uncliented()
GLOB.clients -= src
GLOB.directory -= ckey
log_access("Logout: [key_name(src)]")