aa
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user