Avoid trying to reconnect to a room if client is signed out
This commit is contained in:
parent
9334267bd0
commit
59a66190e5
2 changed files with 28 additions and 21 deletions
|
@ -179,6 +179,10 @@ impl Status {
|
|||
pub fn is_connected(&self) -> bool {
|
||||
matches!(self, Self::Connected { .. })
|
||||
}
|
||||
|
||||
pub fn is_signed_out(&self) -> bool {
|
||||
matches!(self, Self::SignedOut | Self::UpgradeRequired)
|
||||
}
|
||||
}
|
||||
|
||||
struct ClientState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue