aa
This commit is contained in:
@@ -372,13 +372,14 @@ func HandleTcpMessages() {
|
|||||||
printMsgChan <- printMsg
|
printMsgChan <- printMsg
|
||||||
printMsg.Status = printMsgAlreadyLoad
|
printMsg.Status = printMsgAlreadyLoad
|
||||||
dao.UpdateEntity(db, printMsg, "Status")
|
dao.UpdateEntity(db, printMsg, "Status")
|
||||||
|
flag:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case obj, _ := <-printMsgChan:
|
case obj, _ := <-printMsgChan:
|
||||||
if _, ok := obj.(*model.PrintMsg); !ok {
|
if _, ok := obj.(*model.PrintMsg); !ok {
|
||||||
if data, ok2 := obj.(string); ok2 {
|
if data, ok2 := obj.(string); ok2 {
|
||||||
changePrintMsg(data)
|
changePrintMsg(data)
|
||||||
break
|
break flag
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user