From c7bc1abe3cbf1ff1aedc834879e5f9e96d6cf4f6 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 22 Jul 2021 10:52:35 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 02072d24f..c7bcced37 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -374,15 +374,13 @@ func HandleTcpMessages() { dao.UpdateEntity(db, printMsg, "Status") flag: for { - select { - case obj, _ := <-printMsgChan: - if _, ok := obj.(*model.PrintMsg); ok { - continue - } else { - if data, ok2 := obj.(string); ok2 { - changePrintMsg(data) - break flag - } + obj, _ := <-printMsgChan + if _, ok := obj.(*model.PrintMsg); ok { + continue + } else { + if data, ok2 := obj.(string); ok2 { + changePrintMsg(data) + break flag } } }