mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
committed by
Carl Lerche
parent
20993341bd
commit
742d89b0f3
@@ -128,7 +128,7 @@ impl Handle {
|
||||
fn delay_timeout(&self, deadline: Instant, duration: Duration) -> Delay {
|
||||
match self.inner {
|
||||
Some(ref handle_priv) => {
|
||||
Delay::new_with_handle(deadline, Duration::from_secs(0), handle_priv.clone())
|
||||
Delay::new_with_handle(deadline, duration, handle_priv.clone())
|
||||
}
|
||||
None => Delay::new_timeout(deadline, duration),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user