mirror of https://github.com/bobwen-dev/hunter
fix crash when quitting in popped up widget
This commit is contained in:
parent
9729a2482e
commit
9cfe2c2fdb
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue