diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 03111bfd1..c3f3a5418 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -230,21 +230,20 @@ func (t *TcpClient) doPrint(key string) (err error) { printMsg.Status = printMsgErr printMsg.Comment = err.Error() dao.UpdateEntity(db, printMsg, "Status", "Comment") - if t.isExist(key) { - t.clear(key) - close(timeoutChan) - } - return + //if t.isExist(key) { + // t.clear(key) + // close(timeoutChan) + //} + //return } else { if c != nil { if _, err = c.Write(data); err != nil { globals.SugarLogger.Debugf("handleTcpMessages err [%v]", err) //t.delConn(printMsg.PrintNo) - if t.isExist(key) { - t.clear(key) - close(timeoutChan) - } - return + //if t.isExist(key) { + // t.clear(key) + // close(timeoutChan) + //} } else { globals.SugarLogger.Debugf("handleTcpMessages success, data: %v", hex.EncodeToString(data)) //等待回调