Supress panics for ProfilerChan sends.

This commit is contained in:
Josh Matthews 2016-11-10 09:11:59 -05:00
parent 89c46369a2
commit 25a237c466
6 changed files with 15 additions and 4 deletions

View file

@ -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);
}
}
}