Skip to content

Commit 848befc

Browse files
authoredOct 25, 2024
Merge pull request #1282 from yurp/fix_crash_in_negotiationneeded
Fix crash in negotiationNeeded() when track is destroyed
2 parents f8ffbe3 + ad68bb4 commit 848befc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/impl/peerconnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ bool PeerConnection::negotiationNeeded() const {
12221222
if (!media->isRemoved())
12231223
if (auto it = mTracks.find(media->mid()); it != mTracks.end())
12241224
if (auto track = it->second.lock(); !track || track->isClosed()) {
1225-
PLOG_DEBUG << "Negotiation needed to remove track, mid=" << track->mid();
1225+
PLOG_DEBUG << "Negotiation needed to remove track, mid=" << media->mid();
12261226
return true;
12271227
}
12281228
}

0 commit comments

Comments
 (0)