diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 1b58fd5d7..e853d1216 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -383,7 +383,10 @@ func doPrint2(printMsgChan chan *model.PrintMsg) (err error) { ) for { select { - case printMsg, _ := <-printMsgChan: + case data, _ := <-printMsgCallbackChan: + changePrintMsg(data) + default: + printMsg, _ := <-printMsgChan var ( data []byte c net.Conn @@ -429,11 +432,6 @@ func doPrint2(printMsgChan chan *model.PrintMsg) (err error) { } } } - default: - select { - case data, _ := <-printMsgCallbackChan: - changePrintMsg(data) - } } } return err