From b2bfed8937b6b64839257fead2a10be46659dc6b Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 26 Jun 2013 23:34:32 +0800 Subject: [PATCH] fix close err --- reload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reload.go b/reload.go index 4e62b023..62e21782 100644 --- a/reload.go +++ b/reload.go @@ -36,7 +36,7 @@ func (c conn) Close() error { c.lock.Lock() defer c.lock.Unlock() err := c.Conn.Close() - if !c.isclose { + if !c.isclose && err == nil { c.wg.Done() c.isclose = true }