mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Supress panics for ProfilerChan sends.
This commit is contained in:
parent
89c46369a2
commit
25a237c466
6 changed files with 15 additions and 4 deletions
|
@ -22,7 +22,9 @@ pub struct ProfilerChan(pub IpcSender<ProfilerMsg>);
|
|||
|
||||
impl ProfilerChan {
|
||||
pub fn send(&self, msg: ProfilerMsg) {
|
||||
let _ = self.0.send(msg);
|
||||
if let Err(e) = self.0.send(msg) {
|
||||
warn!("Error communicating with the time profiler thread: {}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue