This commit is contained in:
邹宗楠
2022-10-21 15:34:45 +08:00
parent 947682cf88
commit 14a1403936
2 changed files with 5 additions and 2 deletions

View File

@@ -255,12 +255,14 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
}
}
func (t *TcpClient) setPrintStatusTime(key string) {
func (t *TcpClient) setPrintStatusTime(c net.Conn, status int, key string) {
t.Lock()
defer t.Unlock()
if t.Clients[key] != nil {
//t.Clients[key].Status = status
t.Clients[key].StatusTime = time.Now()
t.Clients[key].C = c
t.Clients[key].Status = status
}
}