1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 19:50:49 +00:00

fix close err

This commit is contained in:
astaxie 2013-06-26 23:34:32 +08:00
parent 71adbdd7d7
commit b2bfed8937

View File

@ -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
}