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