Avoid deadlock when shutting down.

This commit is contained in:
Alan Jeffrey 2016-06-02 15:12:00 -05:00
parent bdecfa13d2
commit 2416072dc2
7 changed files with 92 additions and 26 deletions

View file

@ -436,7 +436,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
}
debug!("paint_thread: shutdown_chan send");
shutdown_chan.send(()).unwrap();
let _ = shutdown_chan.send(());
}, Some(id), panic_chan);
}