From ab54bbba0e235dc543b9c0fc073052349a75445d Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 29 Jul 2021 15:24:12 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()