mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:11:11 +08:00
vfs: remove items from writeback when dirty, don't just cancel the upload
This stops open items continually trying to be uploaded
This commit is contained in:
parent
3eded3c4ac
commit
d273a9d82d
|
@ -369,7 +369,9 @@ func (item *Item) _dirty() {
|
|||
item.metaDirty = true
|
||||
if !item.modified {
|
||||
item.modified = true
|
||||
go item.c.writeback.cancelUpload(item)
|
||||
item.mu.Unlock()
|
||||
item.c.writeback.remove(item)
|
||||
item.mu.Lock()
|
||||
}
|
||||
if !item.info.Dirty {
|
||||
item.info.Dirty = true
|
||||
|
|
Loading…
Reference in New Issue
Block a user