mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
fix: crash fix.
(cherry picked from commit 5fcfe04fc167a7c707184c6f92422c360622f1ef)
This commit is contained in:
parent
2a1e28f5f5
commit
b3498b9adb
@ -248,7 +248,9 @@ func (d *Dir) ForgetAll() (hasVirtual bool) {
|
||||
if !hasVirtual {
|
||||
d.read = time.Time{}
|
||||
d.items = make(map[string]Node)
|
||||
d.cleanupTimer.Stop()
|
||||
if d.cleanupTimer != nil {
|
||||
d.cleanupTimer.Stop()
|
||||
}
|
||||
} else {
|
||||
d.cleanupTimer.Reset(time.Duration(d.vfs.Opt.DirCacheTime * 2))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user