fix: Set IsConnectingToServer to false if the connection fails
This commit is contained in:
parent
3b364a8ad6
commit
91ceefb0b5
@ -108,6 +108,8 @@ function ConnectToWorld(props: Props) {
|
||||
} catch (error) {
|
||||
console.error('ERROR livekit connect', error)
|
||||
if (isErrorMessage(error)) setError(error.message)
|
||||
} finally {
|
||||
setIsConnectingToServer(false)
|
||||
}
|
||||
},
|
||||
[identity, selectedServer, onSubmitConnectForm]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user