feat 优化网络库
This commit is contained in:
@@ -90,6 +90,7 @@ func (c *Client) CloseClient() {
|
||||
}
|
||||
}
|
||||
|
||||
// onClose 客户端关闭自动触发
|
||||
func (c *Client) onClose() {
|
||||
if c.conn != nil {
|
||||
_ = c.conn.Close()
|
||||
|
||||
Reference in New Issue
Block a user