forked from TrueCloudLab/rclone
crypt: fix panic on close after failed seek
This commit is contained in:
parent
64b5a76bec
commit
d1080d5456
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue