mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2025-04-16 13:51:59 +00:00
Fixed closing the database when it is not connected
This commit is contained in:
parent
da4fd9d235
commit
9e2359363b
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ end
|
|||
events.handle("onGameInit", db.oninit)
|
||||
|
||||
function db.onshutdown(restartMap)
|
||||
db.close(not restartMap)
|
||||
if db.isConnected() then
|
||||
db.close(not restartMap)
|
||||
end
|
||||
end
|
||||
events.handle("onGameShutdown", db.onshutdown)
|
||||
|
||||
|
|
Loading…
Reference in a new issue