fix setting save bug

This commit is contained in:
Xuan Sang LE 2018-03-24 22:15:25 +01:00
parent 57971e4338
commit d788f87ab9

View File

@ -144,8 +144,8 @@ self.OS or=
exit: ->
#do clean up first
f() for n, f of _OS.cleanupHandlers
_OS.cleanup()
_API.handler.setting (r) ->
_OS.cleanup()
_API.handler.logout()
onexit: (n, f) ->
self.OS.cleanupHandlers[n] = f unless self.OS.cleanupHandlers[n]