aa
This commit is contained in:
@@ -259,8 +259,9 @@ func (t *TcpClient) HandleCheckTcpHeart(key string) {
|
|||||||
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)
|
||||||
t.clear(key)
|
|
||||||
timeoutChan <- 1
|
timeoutChan <- 1
|
||||||
|
timeoutChan <- 1
|
||||||
|
t.clear(key)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ var (
|
|||||||
regexpQrr = regexp.MustCompile(byteSignQrRight + "(.*?)" + byteSignQrRightE)
|
regexpQrr = regexp.MustCompile(byteSignQrRight + "(.*?)" + byteSignQrRightE)
|
||||||
regexpSound = regexp.MustCompile(byteSignSound + "(.*?)" + byteSignSoundE)
|
regexpSound = regexp.MustCompile(byteSignSound + "(.*?)" + byteSignSoundE)
|
||||||
|
|
||||||
timeoutChan = make(chan int)
|
timeoutChan = make(chan int, 2)
|
||||||
)
|
)
|
||||||
|
|
||||||
type PrintInfo struct {
|
type PrintInfo struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user