mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-02 14:00:27 +08:00
缓存文件列表关闭时也清除内存缓存
This commit is contained in:
@@ -360,6 +360,8 @@ func (this *FileList) OnRemove(f func(item *Item)) {
|
||||
func (this *FileList) Close() error {
|
||||
this.isClosed = true
|
||||
|
||||
this.memoryCache.Destroy()
|
||||
|
||||
if this.db != nil {
|
||||
_ = this.existsByHashStmt.Close()
|
||||
_ = this.insertStmt.Close()
|
||||
|
||||
Reference in New Issue
Block a user