This commit is contained in:
邹宗楠
2023-01-03 14:45:31 +08:00
parent 24b4c31037
commit 1bb18dfc46

View File

@@ -81,7 +81,8 @@ func (t *TcpClient) handleConn(c net.Conn) {
//4、读打印channel并打印并切等待回调channel中的消息
//5、修改数据库中打印机状态没在连接池中说明是重新连接的
//6、监听心跳时间超过1分多钟就clear掉
globals.SugarLogger.Debugf("handleConn timeout channel...: %v", t.TimeoutMap[printNo])
globals.SugarLogger.Debugf("handleConn timeout channel...: %s", utils.Format4Output(t.TimeoutMap[printNo], false))
globals.SugarLogger.Debugf("handleConn timeout channel...: %s", utils.Format4Output(t, false))
if t.getClients(printNo) == nil {
t.addConn(c, printNo, status)
t.buildAllMap(printNo)