mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-04-09 23:25:19 +08:00
改进退出程序时关闭数据库写入
This commit is contained in:
@@ -161,7 +161,7 @@ ON "` + this.itemTableName + `" (
|
||||
this.db = db
|
||||
|
||||
goman.New(func() {
|
||||
events.On(events.EventQuit, func() {
|
||||
events.OnClose(func() {
|
||||
_ = this.Close()
|
||||
this.cleanTicker.Stop()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user