Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bea26198e7 |
@@ -149,6 +149,8 @@ func (c *gLazyConn) Close() error {
|
||||
return nil
|
||||
}
|
||||
c.handshakeAccess.Unlock()
|
||||
} else if c.handshakeErr != nil {
|
||||
return nil
|
||||
}
|
||||
return c.tcpConn.Close()
|
||||
}
|
||||
@@ -165,6 +167,8 @@ func (c *gLazyConn) CloseRead() error {
|
||||
return nil
|
||||
}
|
||||
c.handshakeAccess.Unlock()
|
||||
} else if c.handshakeErr != nil {
|
||||
return nil
|
||||
}
|
||||
return c.tcpConn.CloseRead()
|
||||
}
|
||||
@@ -181,6 +185,8 @@ func (c *gLazyConn) CloseWrite() error {
|
||||
return nil
|
||||
}
|
||||
c.handshakeAccess.Unlock()
|
||||
} else if c.handshakeErr != nil {
|
||||
return nil
|
||||
}
|
||||
return c.tcpConn.CloseRead()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user