b2: fix upload url not being refreshed properly #825

This commit is contained in:
Nick Craig-Wood 2017-01-17 17:34:21 +00:00
parent a6b4065e13
commit a4bf22e620

View File

@ -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
//