Skip to content

Commit

Permalink
fix: stop plugin before removal
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Jan 12, 2024
1 parent ddd8d82 commit 210adaa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class HMSMediaStreamPluginsManager {

removePlugins(plugins: HMSMediaStreamPlugin[]) {
plugins.forEach(plugin => {
plugin.stop();
this.plugins.delete(plugin);
});
}
Expand Down

0 comments on commit 210adaa

Please sign in to comment.