diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 60b8f3d63..dea8fee73 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -223,7 +223,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) { go func() { for { if !utils.IsTimeZero(t.getPrintStatusTime(key)) { - if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute*2 { + if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute*2+time.Second*2 { changePrinterStatus(key, printerStatusOffline) if t.isExist(key) { globals.SugarLogger.Debugf("HandleCheckTcpHeart del key,%v", key)