mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fixes repeated database reconnections
setup_database_connection resets the database connection each time it's called, and was being called for each new client
This commit is contained in:
@@ -316,7 +316,7 @@
|
||||
send_resources()
|
||||
|
||||
if(prefs.lastchangelog != changelog_hash) //bolds the changelog button on the interface so we know there are updates. -CP
|
||||
if(!setup_database_connection())
|
||||
if(!establish_db_connection())
|
||||
return // if we have db problems, don't show anything
|
||||
winset(src, "rpane.changelog", "background-color=#f4aa94;font-style=bold")
|
||||
to_chat(src, "<span class='info'>Changelog has changed since your last visit.</span>")
|
||||
|
||||
Reference in New Issue
Block a user