Skip to content
Commit 9cbdcf64 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix joining room before being connected to the external signaling server



Joining a room, if there is no connection yet to the external signaling
server, is deferred until a connection is established. When that happens
"joinRoom" is automatically called again by the signaling code.

However, the deferred "joinRoom" returned a Promise that was never
resolved nor rejected. Due to this the code originally calling
"joinRoom" can be left hanging indefinitely. This happened when joining
the room as a guest, which caused the chat to never load.

Now the initial Promise is resolved when the deferred "joinRoom" is
finally performed (unless "joinRoom" has been called again in the
meantime with a different token, in which case it is rejected).

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent f77b3858
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment