diff --git a/client/object_put.go b/client/object_put.go index 8c0ca1b..24a5539 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 }