diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index b21ae0783..1d60dc16b 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -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 {