This PR fixes up the disconnect process regarding MediaManager. Previously, the manager was not correctly reset and when trying to toggle microphone again the old MicrophoneSender would be reused.
Also a few checks were added for better error handling.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This PR fixes up the disconnect process regarding MediaManager. Previously, the manager was not correctly reset and when trying to toggle microphone again the old MicrophoneSender would be reused.
Also a few checks were added for better error handling.
Type of change
Checklist