mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
tokio-timer: reset timeout after elapsed in stream (#648)
This commit is contained in:
@@ -214,6 +214,7 @@ where T: Stream,
|
||||
match self.delay.poll() {
|
||||
Ok(Async::NotReady) => Ok(Async::NotReady),
|
||||
Ok(Async::Ready(_)) => {
|
||||
self.delay.reset_timeout();
|
||||
Err(Error::elapsed())
|
||||
},
|
||||
Err(e) => Err(Error::timer(e)),
|
||||
|
||||
Reference in New Issue
Block a user