aa
This commit is contained in:
@@ -127,7 +127,9 @@ func (t *TcpClient) delConn(key string) {
|
|||||||
defer t.Unlock()
|
defer t.Unlock()
|
||||||
|
|
||||||
delete(t.Clients, key)
|
delete(t.Clients, key)
|
||||||
t.Clients[key].C.Close()
|
if t.Clients[key].C != nil {
|
||||||
|
t.Clients[key].C.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TcpClient) addConn(c net.Conn, key string, status int) {
|
func (t *TcpClient) addConn(c net.Conn, key string, status int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user