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 }