Commit b2bfed89 authored by astaxie's avatar astaxie

fix close err

parent 71adbdd7
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment