diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 65dda5d78..a23ef12a0 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -306,10 +306,10 @@ func (t *TcpClient) doPrint2(printMsgChan chan *model.PrintMsg) (err error) { err = fmt.Errorf("未查询到此printMsg") } if err != nil { + t.delConn(printMsg.PrintNo) printMsg.Status = printMsgErr printMsg.Comment = err.Error() dao.UpdateEntity(db, printMsg, "Status", "Comment") - t.delConn(printMsg.PrintNo) //delete(t.Clients, printMsg.PrintNo) //if c != nil { // c.Close()