This commit is contained in:
邹宗楠
2022-12-20 11:19:51 +08:00
parent 192c922cbc
commit caf21632de
2 changed files with 4 additions and 6 deletions

View File

@@ -264,10 +264,8 @@ func (t *TcpClient) doPrint(key string) (err error) {
//t.delConn(printMsg.PrintNo)
close(t.TimeoutMap[key])
} else {
globals.SugarLogger.Debugf("=====wait callback1")
//等待回调
dataStr := <-t.CallBackMap[printMsg.PrintNo]
globals.SugarLogger.Debugf("=====wait callback2 %s", dataStr)
if dataStr != "" {
a, b := getCallbackMsgInfo(dataStr)
t.changePrintMsg(dataStr, a, b)