From 68b632436522e3a412112768ab2ea79ca3a0f8e4 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 22 Jul 2021 14:59:59 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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