mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #11700 - Ms2ger:assert, r=jdm
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. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11700) <!-- Reviewable:end -->
This commit is contained in:
commit
3fa0dca3a3
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue