This commit is contained in:
suyl
2021-08-02 15:18:42 +08:00
parent fbc3c7ec8c
commit b524dcc890
2 changed files with 2 additions and 1 deletions

View File

@@ -226,6 +226,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*2 {
changePrinterStatus(key, printerStatusOffline)
if t.isExist(key) {
globals.SugarLogger.Debugf("HandleCheckTcpHeart del key,%v", key)
t.clear(key)
return
}