Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/handlers/sdp/RemoteSdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class RemoteSdp {

// Let's try to recycle a closed media section (if any).
// NOTE: Yes, we can recycle a closed m=audio section with a new m=video.
const oldMediaSection = this._mediaSections.find(m => m.closed);
const oldMediaSection = this._mediaSections.find(m => m.closed && m.getObject().type === kind);

if (oldMediaSection) {
this.replaceMediaSection(mediaSection, oldMediaSection.mid);
Expand Down