cleanup resources

This commit is contained in:
amezghal abdelilah
2018-11-26 09:39:12 +00:00
committed by Erik Dubbelboer
parent a3c314e4a3
commit 8be35c8fb8
-1
View File
@@ -971,7 +971,6 @@ func clientDoDeadline(req *Request, resp *Response, deadline time.Time, c client
// usually continue execution on the host.
var cleanup int32
atomic.StoreInt32(&cleanup, 0)
go func() {
errDo := c.Do(reqCopy, respCopy)
if atomic.LoadInt32(&cleanup) == 1 {