From e15e3ea14bcd892a5abaed218529af955ec9ee4e Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 22 Jul 2021 10:42:08 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index ed3f8d28e..6293ce011 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -372,13 +372,14 @@ func HandleTcpMessages() { printMsgChan <- printMsg printMsg.Status = printMsgAlreadyLoad dao.UpdateEntity(db, printMsg, "Status") + flag: for { select { case obj, _ := <-printMsgChan: if _, ok := obj.(*model.PrintMsg); !ok { if data, ok2 := obj.(string); ok2 { changePrintMsg(data) - break + break flag } continue }