aa
This commit is contained in:
@@ -223,7 +223,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
|
|||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
||||||
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*2 {
|
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*30 {
|
||||||
changePrinterStatus(key, printerStatusOffline)
|
changePrinterStatus(key, printerStatusOffline)
|
||||||
if t.isExist(key) {
|
if t.isExist(key) {
|
||||||
globals.SugarLogger.Debugf("HandleCheckTcpHeart del key,%v", key)
|
globals.SugarLogger.Debugf("HandleCheckTcpHeart del key,%v", key)
|
||||||
|
|||||||
Reference in New Issue
Block a user