This commit is contained in:
邹宗楠
2022-12-16 13:53:03 +08:00
parent 43f8d0e623
commit 914eff9a1f

View File

@@ -159,7 +159,7 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
return return
} }
go func() { go func() {
//for { for {
select { select {
case <-t.TimeoutMap[printNo]: case <-t.TimeoutMap[printNo]:
globals.SugarLogger.Debugf("HandleTcpMessages timeout") globals.SugarLogger.Debugf("HandleTcpMessages timeout")
@@ -180,7 +180,7 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
} }
} }
} }
//} }
}() }()
} }
func (t *TcpClient) readTimeoutMap(key string) bool { func (t *TcpClient) readTimeoutMap(key string) bool {