8000 Make autoSave run before postgres disconnect · uramer/CoreScripts@3665d3a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3665d3a

Browse files
committed
Make autoSave run before postgres disconnect
1 parent b122dfb commit 3665d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/autoSave.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ customEventHooks.registerHandler('OnStorageLoad', function(eventStatus, key)
241241
end)
242242

243243
-- force the OnServerExit handler to be the last
244-
customEventHooks.registerHandler('OnServerPostInit', function(eventStatus)
244+
customEventHooks.registerHandler('OnServerInit', function(eventStatus)
245245
customEventHooks.registerHandler('OnServerExit', function(eventStatus)
246246
if eventStatus.validDefaultHandler then
247247
exiting = true

0 commit comments

Comments
 (0)
0