From 51db0eee9f997e5e88bb7368c676520064004f6b Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 2 Aug 2021 15:30:31 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)