aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/window.rs')
-rw-r--r--src/components/script/dom/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs
index f6036ef9aec..40c553e2f4f 100644
--- a/src/components/script/dom/window.rs
+++ b/src/components/script/dom/window.rs
@@ -61,7 +61,7 @@ impl Hash for TimerId {
impl TimerHandle {
fn cancel(&mut self) {
- self.cancel_chan.as_ref().map(|chan| chan.send(()));
+ self.cancel_chan.as_ref().map(|chan| chan.send_opt(()).ok());
}
}