mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
Makes things before core Login call async. (#39971)
This commit is contained in:
committed by
vuonojenmustaturska
parent
ba68943bac
commit
32e49ecd10
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user