This commit is contained in:
suyl
2021-07-22 13:43:07 +08:00
parent 06c0dece69
commit 1a21344d89

View File

@@ -375,13 +375,6 @@ func HandleTcpMessages() {
printMsgChan <- printMsg
printMsg.Status = printMsgAlreadyLoad
dao.UpdateEntity(db, printMsg, "Status")
Loop:
for {
if data, _ := <-printMsgCallbackChan; data != "" {
changePrintMsg(data)
break Loop
}
}
}
}
}
@@ -438,6 +431,11 @@ func doPrint2(printMsgChan chan *model.PrintMsg) (err error) {
}
}
}
default:
select {
case data, _ := <-printMsgCallbackChan:
changePrintMsg(data)
}
}
}
return err