This commit is contained in:
suyl
2021-08-03 14:10:12 +08:00
parent 4974568f5a
commit 930c3908e1

View File

@@ -274,8 +274,8 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*3 { if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*3 {
changePrinterStatus(key, printerStatusOffline) changePrinterStatus(key, printerStatusOffline)
if t.isExist(key) { if t.isExist(key) {
t.clear(key)
globals.SugarLogger.Debugf("HandleCheckTcpHeart clear...") globals.SugarLogger.Debugf("HandleCheckTcpHeart clear...")
t.clear(key)
} }
} }
} }