diff --git a/client/object_put.go b/client/object_put.go index 8c0ca1b9..24a55397 100644 --- a/client/object_put.go +++ b/client/object_put.go @@ -179,7 +179,7 @@ func (x *ObjectWriter) Close() (*ResObjectPut, error) { return nil, x.ctxCall.err } - if !x.ctxCall.close() { + if x.ctxCall.err = x.ctxCall.closer(); x.ctxCall.err != nil { return nil, x.ctxCall.err }