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,
|
||||
};
|
||||
|
||||
select! {
|
||||
_ = canary => (),
|
||||
_ = Self::reconnect(&name, &event_tx) => (),
|
||||
_ = state.handle_events(&mut event_rx) => (),
|
||||
let result = select! {
|
||||
_ = canary => Ok(()),
|
||||
_ = Self::reconnect(&name, &event_tx) => Ok(()),
|
||||
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