From bf9269de9a5cc6a4d06bada46007516573fece7c Mon Sep 17 00:00:00 2001
From: Nikolay Kim <fafhrd91@gmail.com>
Date: Wed, 7 Nov 2018 21:20:50 -0800
Subject: [PATCH] reset delay instead of creating new one

---
 src/keepalive.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/keepalive.rs b/src/keepalive.rs
index 39d0998e..5ee0892d 100644
--- a/src/keepalive.rs
+++ b/src/keepalive.rs
@@ -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(()))
                 }