aa
This commit is contained in:
@@ -306,10 +306,10 @@ func (t *TcpClient) doPrint2(printMsgChan chan *model.PrintMsg) (err error) {
|
|||||||
err = fmt.Errorf("未查询到此printMsg")
|
err = fmt.Errorf("未查询到此printMsg")
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
t.delConn(printMsg.PrintNo)
|
||||||
printMsg.Status = printMsgErr
|
printMsg.Status = printMsgErr
|
||||||
printMsg.Comment = err.Error()
|
printMsg.Comment = err.Error()
|
||||||
dao.UpdateEntity(db, printMsg, "Status", "Comment")
|
dao.UpdateEntity(db, printMsg, "Status", "Comment")
|
||||||
t.delConn(printMsg.PrintNo)
|
|
||||||
//delete(t.Clients, printMsg.PrintNo)
|
//delete(t.Clients, printMsg.PrintNo)
|
||||||
//if c != nil {
|
//if c != nil {
|
||||||
// c.Close()
|
// c.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user