1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 00:01:11 +01:00

reset delay instead of creating new one

This commit is contained in:
Nikolay Kim 2018-11-07 21:20:50 -08:00
parent bb34df8c1b
commit bf9269de9a

View File

@ -106,7 +106,7 @@ where
if self.expire <= now {
Err((self.f)())
} else {
self.delay = Delay::new(self.expire);
self.delay.reset(self.expire);
let _ = self.delay.poll();
Ok(Async::Ready(()))
}