From 6f0666138aab45bdf5cd6d926830ee460df51105 Mon Sep 17 00:00:00 2001 From: MrStonedOne Date: Wed, 29 Oct 2014 18:02:21 -0700 Subject: [PATCH] Ensures spawned proc is never called if the client goes away --- code/modules/client/client procs.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index d1cd74964fd..6d8a2e6d1d8 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -137,7 +137,8 @@ var/next_external_rsc = 0 if (!ticker || ticker.current_state == GAME_STATE_PREGAME) spawn (rand(10,150)) - sync_client_with_db() + if (src) + sync_client_with_db() else sync_client_with_db()