From 5492f97e02f3b7e33659e66948b1d63cbc2e0770 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 27 Feb 2023 10:22:50 -0600 Subject: [PATCH] fixes a bad client runtime (#20410) --- goon/code/datums/browserOutput.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goon/code/datums/browserOutput.dm b/goon/code/datums/browserOutput.dm index 77beb75d154..8beb2894a9e 100644 --- a/goon/code/datums/browserOutput.dm +++ b/goon/code/datums/browserOutput.dm @@ -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