mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Don't fail on clearing nonexistant timeouts
This commit is contained in:
parent
897e39dcf3
commit
e21faaaba7
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue