aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
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 8f361ebcb7b..0b8d7117022 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -149,7 +149,10 @@ impl TimerManager {
let id = select.wait();
if id == timeout_handle.id() {
timeout_port.recv().unwrap();
- script_chan.send(ScriptMsg::FireTimer(source, TimerId(handle)));
+ if script_chan.send(ScriptMsg::FireTimer(source, TimerId(handle))).is_err() {
+ break;
+ }
+
if is_interval == IsInterval::NonInterval {
break;
}