[MIRROR] Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before. [MDB IGNORE] (#8714)

* Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before. (#61943)

* Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before.

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-09 09:11:52 -04:00
committed by GitHub
co-authored by LemonInTheDark
parent d3f9b7720e
commit 95ab2d2efb
11 changed files with 54 additions and 32 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
if(C.current_ticket)
var/datum/admin_help/T = C.current_ticket
T.AddInteraction("Client disconnected.")
SSblackbox.LogAhelp(T, "Disconnected", "Client disconnected", C.ckey)
//Gotta async this cause clients only logout on destroy, and sleeping in destroy is disgusting
INVOKE_ASYNC(SSblackbox, /datum/controller/subsystem/blackbox/proc/LogAhelp, T, "Disconnected", "Client disconnected", C.ckey)
T.initiator = null
//Get a ticket given a ckey