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