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