mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-04 22:55:48 +08:00
改进退出程序时关闭数据库写入
This commit is contained in:
@@ -504,6 +504,10 @@ func (this *FileListDB) CleanAll() error {
|
||||
}
|
||||
|
||||
func (this *FileListDB) Close() error {
|
||||
if this.isClosed {
|
||||
return nil
|
||||
}
|
||||
|
||||
this.isClosed = true
|
||||
this.isReady = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user