team113 / messenger

Open-source front-end part of messenger by team113
GNU Affero General Public License v3.0
14 stars 13 forks source link

Local devices might still be used after `Call` is already disposed #1007

Open SleepySquash opened 1 month ago

SleepySquash commented 1 month ago

Summary

After a call is ended, the devices must be released. However, sometime it seems like they do not (for example, camera is still displayed with a green dot, or the tab has a red dot).

Steps to reproduce

  1. Start and end some calls in browser within the app.
  2. Notice the local devices still being used despite no calls being active.

Might investigate the room recreation - when a new room is created, OngoingCall completes the rejoin. This might be a place where local tracks are recreated two or more time, so after the call is ended they don't get disposed.

What is the current bug behavior?

Local devices are still used after the call is ended.

What is the expected correct behavior?

No devices are used when there's no active call.