diff --git a/tokio-timer/src/timer/mod.rs b/tokio-timer/src/timer/mod.rs index 1ebdb6241..89c5eb25e 100644 --- a/tokio-timer/src/timer/mod.rs +++ b/tokio-timer/src/timer/mod.rs @@ -478,6 +478,8 @@ where T: Park, if deadline > now { self.park.park_timeout(deadline - now)?; + } else { + self.park.park_timeout(Duration::from_secs(0))?; } } None => { @@ -500,6 +502,8 @@ where T: Park, if deadline > now { self.park.park_timeout(cmp::min(deadline - now, duration))?; + } else { + self.park.park_timeout(Duration::from_secs(0))?; } } None => {