This commit is contained in:
suyl
2021-07-22 12:07:33 +08:00
parent 03a0294e9c
commit 06c0dece69

View File

@@ -377,8 +377,7 @@ func HandleTcpMessages() {
dao.UpdateEntity(db, printMsg, "Status") dao.UpdateEntity(db, printMsg, "Status")
Loop: Loop:
for { for {
select { if data, _ := <-printMsgCallbackChan; data != "" {
case data, _ := <-printMsgCallbackChan:
changePrintMsg(data) changePrintMsg(data)
break Loop break Loop
} }