mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 16:41:34 +02:00
vfs: don't remove file from writers until it is transferred
This means that the list of active writers is up to date
This commit is contained in:
@ -151,7 +151,8 @@ func (fh *WriteFileHandle) close() error {
|
||||
return ECLOSED
|
||||
}
|
||||
fh.closed = true
|
||||
fh.file.delWriter(fh)
|
||||
// leave writer open until file is transferred
|
||||
defer fh.file.delWriter(fh)
|
||||
writeCloseErr := fh.pipeWriter.Close()
|
||||
err := <-fh.result
|
||||
if err == nil {
|
||||
|
Reference in New Issue
Block a user