This commit is contained in:
suyl
2021-08-03 14:04:55 +08:00
parent 9581139b91
commit 4974568f5a

View File

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