Skip to content

[stable16] Fix peer creation for participants no longer in the call - #2006

Merged
nickvergessen merged 2 commits into
stable16from
backport/2004/stable16
Jul 19, 2019
Merged

[stable16] Fix peer creation for participants no longer in the call#2006
nickvergessen merged 2 commits into
stable16from
backport/2004/stable16

Conversation

@backportbot-nextcloud

Copy link
Copy Markdown

backport of #2004

danxuliu added 2 commits July 17, 2019 08:23
When the current participant lefts a call WebRTC is not properly
tore down; signaling events are still handled, so if an offer message is
received after leaving a call (which in general should not happen, but
in some strange cases it could) a new Peer object was created. Although
the proper fix would be to disconnect WebRTC and the signaling events
after leaving a call that would require deeper changes, so for now
offers received when not in a call are ignored.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When a participant is not in the call a Peer object should not be
created for her; besides being incorrect, that would also create a
VideoView for that participant, which will basically stay there as a
ghost without never connecting to her. Due to this when a participant
leaves the call the delayed peer creation for that participant, if any,
has to be cancelled; otherwise once the timeout expires the peer would
be created with the issue just described.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@backportbot-nextcloud backportbot-nextcloud Bot added bug feature: frontend 🖌️ "Web UI" client feature: signaling 📶 Internal and external signaling backends feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients labels Jul 17, 2019
@backportbot-nextcloud backportbot-nextcloud Bot added this to the 💙 Next Minor (16) milestone Jul 17, 2019
@nickvergessen nickvergessen mentioned this pull request Jul 19, 2019
3 tasks
@nickvergessen
nickvergessen merged commit 3c97830 into stable16 Jul 19, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the backport/2004/stable16 branch July 19, 2019 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug feature: frontend 🖌️ "Web UI" client feature: signaling 📶 Internal and external signaling backends feature: WebRTC 🚡 WebRTC connection between browsers and/or mobile clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants