Print error if room stops with an error
This commit is contained in:
parent
ae2c887a3c
commit
fa746d0749
1 changed files with 8 additions and 4 deletions
|
|
@ -42,10 +42,14 @@ impl State {
|
||||||
conn_tx: None,
|
conn_tx: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
select! {
|
let result = select! {
|
||||||
_ = canary => (),
|
_ = canary => Ok(()),
|
||||||
_ = Self::reconnect(&name, &event_tx) => (),
|
_ = Self::reconnect(&name, &event_tx) => Ok(()),
|
||||||
_ = state.handle_events(&mut event_rx) => (),
|
e = state.handle_events(&mut event_rx) => e,
|
||||||
|
};
|
||||||
|
|
||||||
|
if let Err(e) = result {
|
||||||
|
error!("e&{name}: {}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue