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:
Krausus
2016-06-07 05:05:02 -04:00
parent 0c3d0c31dc
commit c5fc47eca4
+1 -1
View File
@@ -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>")