aa
This commit is contained in:
@@ -374,8 +374,7 @@ func HandleTcpMessages() {
|
||||
dao.UpdateEntity(db, printMsg, "Status")
|
||||
flag:
|
||||
for {
|
||||
select {
|
||||
case obj, _ := <-printMsgChan:
|
||||
obj, _ := <-printMsgChan
|
||||
if _, ok := obj.(*model.PrintMsg); ok {
|
||||
continue
|
||||
} else {
|
||||
@@ -388,7 +387,6 @@ func HandleTcpMessages() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func doPrint2(printMsgChan chan interface{}) (err error) {
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user