don't block forever
This commit is contained in:
parent
be788415ad
commit
d7b9b2713b
@ -42,6 +42,8 @@ func (t *table) sendEvent(e *Event) {
|
|||||||
select {
|
select {
|
||||||
case w.resChan <- e:
|
case w.resChan <- e:
|
||||||
case <-w.done:
|
case <-w.done:
|
||||||
|
// don't block forever
|
||||||
|
case <-time.After(time.Second):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user