Skip to content

Commit

Permalink
Update pause state on media sender stop
Browse files Browse the repository at this point in the history
  • Loading branch information
havfo committed Mar 12, 2024
1 parent b620204 commit 5a2f45e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/mediaSender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export class MediaSender extends EventEmitter {
this.codec = undefined;

if (!local) this.emit('closed');

this.paused = false;
}

public addPeerId(peerId: string): void {
Expand Down

0 comments on commit 5a2f45e

Please sign in to comment.