This commit is contained in:
suyl
2021-08-02 17:20:25 +08:00
parent 5231be8236
commit 895a17a46b
2 changed files with 3 additions and 2 deletions

View File

@@ -259,8 +259,9 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
changePrinterStatus(key, printerStatusOffline)
if t.isExist(key) {
globals.SugarLogger.Debugf("HandleCheckTcpHeart del key,%v", key)
t.clear(key)
timeoutChan <- 1
timeoutChan <- 1
t.clear(key)
return
}
}

View File

@@ -108,7 +108,7 @@ var (
regexpQrr = regexp.MustCompile(byteSignQrRight + "(.*?)" + byteSignQrRightE)
regexpSound = regexp.MustCompile(byteSignSound + "(.*?)" + byteSignSoundE)
timeoutChan = make(chan int)
timeoutChan = make(chan int, 2)
)
type PrintInfo struct {