aa
This commit is contained in:
@@ -272,7 +272,7 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
|
|||||||
default:
|
default:
|
||||||
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
if !utils.IsTimeZero(t.getPrintStatusTime(key)) {
|
||||||
//2分钟内没心跳判断打印机掉线了
|
//2分钟内没心跳判断打印机掉线了
|
||||||
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute*2 {
|
if time.Now().Sub(t.getPrintStatusTime(key)) > time.Minute+time.Second*3 {
|
||||||
changePrinterStatus(key, printerStatusOffline)
|
changePrinterStatus(key, printerStatusOffline)
|
||||||
if t.isExist(key) {
|
if t.isExist(key) {
|
||||||
t.clear(key)
|
t.clear(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user