1
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user