This commit is contained in:
邹宗楠
2022-10-21 15:36:45 +08:00
parent 14a1403936
commit 80e8bbcda8
2 changed files with 2 additions and 4 deletions

View File

@@ -255,14 +255,12 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
}
}
func (t *TcpClient) setPrintStatusTime(c net.Conn, status int, key string) {
func (t *TcpClient) setPrintStatusTime(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
}
}