mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
auto merge of #2646 : Manishearth/servo/cleartimeout-opt, r=jdm
This commit is contained in:
commit
58b776e0b5
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