mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
parent
20993341bd
commit
742d89b0f3
@ -128,7 +128,7 @@ impl Handle {
|
|||||||
fn delay_timeout(&self, deadline: Instant, duration: Duration) -> Delay {
|
fn delay_timeout(&self, deadline: Instant, duration: Duration) -> Delay {
|
||||||
match self.inner {
|
match self.inner {
|
||||||
Some(ref handle_priv) => {
|
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),
|
None => Delay::new_timeout(deadline, duration),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user