This commit is contained in:
suyl
2021-08-02 15:30:31 +08:00
parent 0aa369db48
commit 51db0eee9f

View File

@@ -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)