Unstopped Tracks on Room Disconnect
Tanney-102 opened this issue · 2 comments
Tanney-102 commented
Describe the bug
Sometimes tracks do not stop properly upon disconnect. If the room disconnects after the camera or audio has been turned on but before the getUserMedia request is resolved, the tracks of the resolved stream remain active and do not stop.
Reproduction
- call LocalParticipant.setCameraEnabled(true)
- call Room.disconnect before getUesrMedia is resolved
- RoomEvent.Disconnected is fired before getUesrMedia is resolved
Logs
No response
System Info
System:
OS: macOS 14.3.1
CPU: (12) arm64 Apple M3 Pro
Memory: 359.20 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 4.0.0 - ~/.nvm/versions/node/v18.17.0/bin/yarn
npm: 10.4.0 - ~/.nvm/versions/node/v18.17.0/bin/npm
Browsers:
Chrome: 125.0.6422.61
Firefox: 125.0.3
Safari: 17.3.1
Severity
serious, but I can work around it
Additional Information
No response
lukasIO commented
Can you reproduce this with the latest version?
This should have been addressed by #1131.
It might still happen that RoomEvent.Disconnected
gets fired before the tracks stop, but the tracks should definitely stop with that change.
Tanney-102 commented
@lukasIO Oh, I confirmed that the issue is resolved in the latest version! Thank you so much.