Fixes the issues with the database that have been forcing us to have #10823 test-merged for half a year (#15061)

* Don't try to make a query on a client that doesn't exist

* If this is actually why it's been shitting the bed, I swear to god
This commit is contained in:
GoldenAlpharex
2022-07-20 04:12:35 +02:00
committed by GitHub
parent 122b4a9490
commit fbbecbdba5
2 changed files with 4 additions and 1 deletions
@@ -49,5 +49,5 @@
min_val = 1
/datum/config_entry/number/max_concurrent_queries
config_entry_value = 25
default = 25
min_val = 1
@@ -228,6 +228,9 @@
* Shows the player a list of current polls, if any.
*/
/mob/dead/new_player/proc/playerpolls()
if(!usr || !client)
return
var/output
if (!SSdbcore.Connect())
return