forked from TrueCloudLab/rclone
b2: fix upload url not being refreshed properly #825
This commit is contained in:
parent
a6b4065e13
commit
a4bf22e620
1 changed files with 4 additions and 1 deletions
5
b2/b2.go
5
b2/b2.go
|
@ -1280,7 +1280,10 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo) (err error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer o.fs.returnUploadURL(upload)
|
||||
defer func() {
|
||||
// return it like this because we might nil it out
|
||||
o.fs.returnUploadURL(upload)
|
||||
}()
|
||||
|
||||
// Headers for upload file
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue