mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
crypt: fix panic on close after failed seek
This commit is contained in:
parent
64b5a76bec
commit
d1080d5456
@ -714,6 +714,9 @@ func (fh *decrypter) Close() error {
|
||||
}
|
||||
// Show file now closed
|
||||
fh.err = ErrorFileClosed
|
||||
if fh.rc == nil {
|
||||
return nil
|
||||
}
|
||||
return fh.rc.Close()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user