Removes some var/const that should be defines (#51461)

* Removes some var/const that should be defines

* change requests

* change requests
This commit is contained in:
spookydonut
2020-06-25 03:00:09 -04:00
committed by GitHub
parent 6f78641ae3
commit 88d1d36aef
15 changed files with 89 additions and 63 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ SUBSYSTEM_DEF(dbcore)
flags = SS_BACKGROUND
wait = 1 MINUTES
init_order = INIT_ORDER_DBCORE
var/const/FAILED_DB_CONNECTION_CUTOFF = 5
var/failed_connection_timeout = 0
var/schema_mismatch = 0
@@ -68,7 +67,7 @@ SUBSYSTEM_DEF(dbcore)
if(failed_connection_timeout <= world.time) //it's been more than 5 seconds since we failed to connect, reset the counter
failed_connections = 0
if(failed_connections > FAILED_DB_CONNECTION_CUTOFF) //If it failed to establish a connection more than 5 times in a row, don't bother attempting to connect for 5 seconds.
if(failed_connections > 5) //If it failed to establish a connection more than 5 times in a row, don't bother attempting to connect for 5 seconds.
failed_connection_timeout = world.time + 50
return FALSE