fix(stability): various crashes (#3209)

This commit is contained in:
Aram Drevekenin 2024-03-20 08:51:02 +01:00 committed by GitHub
parent 65a7fcf426
commit 0d60bf16bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ macro_rules! active_tab_and_connected_client_id {
($screen:ident, $client_id:ident, $closure:expr, ?) => {
match $screen.get_active_tab_mut($client_id) {
Ok(active_tab) => {
$closure(active_tab, $client_id)?;
$closure(active_tab, $client_id).non_fatal();
},
Err(_) => {
if let Some(client_id) = $screen.get_first_client_id() {