Skip to content

Commit

Permalink
EventLoopHandle::drop spawns final iteration (tomusdrw#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
synlestidae committed Jul 20, 2018
1 parent dfa220c commit 0e42bd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transports/shared.rs
Expand Up @@ -73,6 +73,7 @@ impl EventLoopHandle {
impl Drop for EventLoopHandle {
fn drop(&mut self) {
self.done.store(true, atomic::Ordering::Relaxed);
self.remote.spawn(|_| Ok(()));
self.thread
.take()
.expect("We never touch thread except for drop; drop happens only once; qed")
Expand Down

0 comments on commit 0e42bd6

Please sign in to comment.