aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-06-10 09:49:58 +0200
committerMs2ger <Ms2ger@gmail.com>2016-06-10 09:49:58 +0200
commitf695842df703383040fb4261eaf5174a788be0a8 (patch)
treef905097fc1bb44a81d8eb1845a0fde4a82b673c1 /components/script/timers.rs
parent2cfef1391f53723aadb3f5225e3eaf3d155002d4 (diff)
downloadservo-f695842df703383040fb4261eaf5174a788be0a8.tar.gz
servo-f695842df703383040fb4261eaf5174a788be0a8.zip
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.
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs5
1 files changed, 4 insertions, 1 deletions
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