summaryrefslogtreecommitdiffstats
path: root/tokio/src/time/driver/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/time/driver/mod.rs')
-rw-r--r--tokio/src/time/driver/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tokio/src/time/driver/mod.rs b/tokio/src/time/driver/mod.rs
index 917078ef..9fbc0b3c 100644
--- a/tokio/src/time/driver/mod.rs
+++ b/tokio/src/time/driver/mod.rs
@@ -189,6 +189,8 @@ where
let mut lock = self.inner.lock();
+ assert!(!lock.is_shutdown);
+
let next_wake = lock.wheel.next_expiration_time();
lock.next_wake =
next_wake.map(|t| NonZeroU64::new(t).unwrap_or_else(|| NonZeroU64::new(1).unwrap()));