jitsi / lib-jitsi-meet

A low-level JS video API that allows adding a completely custom video experience to web apps.
Apache License 2.0
1.33k stars 1.11k forks source link

Error when leaving locks room for further use #1767

Open Fuzzyma opened 2 years ago

Fuzzyma commented 2 years ago

Description

When rapidly (or not so rapidly) switching between conferences, it can happen, that a room gets unusable because "The timeout for the confirmation about leaving the room expired.". After this has happened, you can neither leave the room (because this.room is null which leads to "you already left the room") nor can you join it (because this.room is null) and reinitializing the room also doesn't work because the server reports "you are already in this room". That means that this room basically gets soft-locked

Current behavior

Leave-Timeout expires, room is soft-locked after that

Expected Behavior

The user shouldn't see any of this and should still be able to leave/joins the room

Possible Solution

Multiple:

Steps to reproduce

Initialize two jitsi conferences over the same connection

Environment details

Win10 Chrome 94

damencho commented 2 years ago

When rapidly (or not so rapidly) switching between conferences, it can happen, that a room gets unusable because "The timeout for the confirmation about leaving the room expired.".

Why is this expired?

Fuzzyma commented 2 years ago

Don't ask me. The error is coming from jitsi. Maybe, you are overwriting the old room with the new one and the event is handled by the new room instead of the old one? I am not deep enough in the code in order to have a good guess