Merge pull request #1122 from micro/blocking

don't block forever
This commit is contained in:
Asim Aslam 2020-01-17 15:24:03 +00:00 committed by GitHub
commit 8425ae77f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,8 @@ func (t *table) sendEvent(e *Event) {
select {
case w.resChan <- e:
case <-w.done:
// don't block forever
case <-time.After(time.Second):
}
}
}