From f695842df703383040fb4261eaf5174a788be0a8 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 10 Jun 2016 09:49:58 +0200 Subject: [PATCH] Remove an invalid assertion in fire_timer. It's not clear to me if this is something we should expect to happen, but it does indeed happen, so we should disable the assertion while we investigate. Fixes #9984. --- components/script/timers.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/script/timers.rs b/components/script/timers.rs index 53113e06682..504dbb8aaaf 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -176,7 +176,10 @@ impl OneshotTimers { let base_time = self.base_time(); // Since the event id was the expected one, at least one timer should be due. - assert!(base_time >= self.timers.borrow().last().unwrap().scheduled_for); + if base_time < self.timers.borrow().last().unwrap().scheduled_for { + warn!("Unexpected timing!"); + return; + } // select timers to run to prevent firing timers // that were installed during fire of another timer