From 03e78e27798c3b96539afad7bf20dc44144690d9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 9 Oct 2023 21:02:03 +0800 Subject: [PATCH] 1 --- src/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.rs b/src/timer.rs index 5f29825..0972f87 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -129,7 +129,7 @@ impl Timer { t.borrow_mut().cb = Some(*cb); t.borrow_mut().timer_type = timer_type; t.borrow_mut().expire_time = expire_time; - t.borrow_mut().expires = expire_time as i64; + t.borrow_mut().expires = (self.get_tick_count)() + expire_time as i64; return Rc::downgrade(&t.borrow().wp); }