1
This commit is contained in:
@@ -196,10 +196,11 @@ func (t *TcpClient) doPrint(key string) (err error) {
|
||||
}
|
||||
go func() {
|
||||
for {
|
||||
if t.readTimeoutMap(key) {
|
||||
select {
|
||||
case <-t.TimeoutMap[key]:
|
||||
globals.SugarLogger.Debugf("doPrint timeout")
|
||||
return
|
||||
} else {
|
||||
default:
|
||||
select {
|
||||
case printMsg, ok := <-t.MsgMap[key]:
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user