This commit is contained in:
suyl
2021-08-03 14:28:38 +08:00
parent 930c3908e1
commit 7a6f3b20d7
2 changed files with 2 additions and 2 deletions

View File

@@ -275,7 +275,8 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
changePrinterStatus(key, printerStatusOffline)
if t.isExist(key) {
globals.SugarLogger.Debugf("HandleCheckTcpHeart clear...")
t.clear(key)
//t.clear(key)
close(t.TimeoutMap[key])
}
}
}

View File

@@ -288,7 +288,6 @@ func (t *TcpClient) clear(key string) {
//delete(t.MsgMap, key)
//close(t.CallBackMap[key])
//delete(t.CallBackMap, key)
close(t.TimeoutMap[key])
delete(t.TimeoutMap, key)
}