fix crash when quitting in popped up widget

This commit is contained in:
rabite 2019-04-27 15:21:23 +02:00
parent 9729a2482e
commit 9cfe2c2fdb
1 changed files with 2 additions and 2 deletions

View File

@ -508,9 +508,9 @@ fn dispatch_events(tx_internal: Sender<Events>,
_ => {}
}
if let Some(tx_exclusive) = &tx_exclusive_event {
tx_exclusive.send(event).unwrap();
tx_exclusive.send(event).ok();
} else {
tx_internal.send(event).unwrap();
tx_internal.send(event).ok();
}
}
});