This commit is contained in:
suyl
2021-07-29 15:24:12 +08:00
parent 2fab08a747
commit ab54bbba0e

View File

@@ -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()