aa
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user