Skip to content

Commit

Permalink
Check player_list as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Oct 18, 2023
1 parent 0673aa8 commit ec5cc00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/subsystem/inactivity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ SUBSYSTEM_DEF(inactivity)
runlevels = RUNLEVELS_DEFAULT|RUNLEVEL_LOBBY

/datum/controller/subsystem/inactivity/fire(resumed = FALSE)
// Maybe we should just get a SS to bandaid all important global lists like this?
if(list_clear_nulls(GLOB.clients))
debug_log("Removed nulls from GLOB.clients!")
if(list_clear_nulls(GLOB.player_list))
debug_log("Removed nulls from GLOB.player_list!")

if (!CONFIG_GET(flag/kick_inactive))
return
Expand Down

0 comments on commit ec5cc00

Please sign in to comment.