Fix InternalEventReader::poll timeout computation (#511)

This commit is contained in:
Carl-Erwin Griffith 2020-11-14 10:48:42 +01:00 committed by GitHub
parent 467a884bae
commit 30ce6364a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ impl InternalEventReader {
let poll_timeout = PollTimeout::new(timeout);
loop {
let maybe_event = match event_source.try_read(timeout) {
let maybe_event = match event_source.try_read(poll_timeout.leftover()) {
Ok(None) => None,
Ok(Some(event)) => {
if filter.eval(&event) {