fixes a bad client runtime (#20410)

This commit is contained in:
GDN
2023-02-27 10:22:50 -06:00
committed by GitHub
parent ed275dbd9e
commit 5492f97e02
+2 -2
View File
@@ -70,7 +70,7 @@ GLOBAL_LIST_EMPTY(bicon_cache)
for(var/asset in GLOB.chatResources)
owner << browse_rsc(wrap_file(asset))
for(var/subattempts in 1 to 3)
for(var/subattempts in 1 to 3) // GDN note- Remove this later it DOES NOT WORK
owner << browse(file2text("goon/browserassets/html/browserOutput.html"), "window=browseroutput")
sleep(10 SECONDS)
if(!owner || loaded)
@@ -108,7 +108,7 @@ GLOBAL_LIST_EMPTY(bicon_cache)
ehjax_send(data = data)
/datum/chatOutput/proc/doneLoading()
if(loaded)
if(loaded || !owner) // Chatloading is so fucking slow that we actually need to check if there's an owner between these calls, they mighta ollied outta there by closing their client right after a restart
return
loaded = TRUE