diff --git a/code/modules/jobs/job_exp.dm b/code/modules/jobs/job_exp.dm index 6a5a857ef0e..4b7b1752409 100644 --- a/code/modules/jobs/job_exp.dm +++ b/code/modules/jobs/job_exp.dm @@ -155,7 +155,7 @@ GLOBAL_PROTECT(exp_to_update) if(!SSdbcore.Connect()) return -1 var/datum/DBQuery/exp_read = SSdbcore.NewQuery("SELECT job, minutes FROM [format_table_name("role_time")] WHERE ckey = '[sanitizeSQL(ckey)]'") - if(!exp_read.Execute()) + if(!exp_read.Execute(async = TRUE)) qdel(exp_read) return -1 var/list/play_records = list() @@ -172,7 +172,6 @@ GLOBAL_PROTECT(exp_to_update) prefs.exp = play_records - //updates player db flags /client/proc/update_flag_db(newflag, state = FALSE) @@ -269,7 +268,7 @@ GLOBAL_PROTECT(exp_to_update) var/datum/DBQuery/flags_read = SSdbcore.NewQuery("SELECT flags FROM [format_table_name("player")] WHERE ckey='[ckey]'") - if(!flags_read.Execute()) + if(!flags_read.Execute(async = TRUE)) qdel(flags_read) return FALSE