Browse Source

Merge pull request #1282 from yurp/fix_crash_in_negotiationneeded

Fix crash in negotiationNeeded() when track is destroyed
Paul-Louis Ageneau 9 months ago
parent
commit
848befcdf4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/peerconnection.cpp

+ 1 - 1
src/impl/peerconnection.cpp

@@ -1222,7 +1222,7 @@ bool PeerConnection::negotiationNeeded() const {
 					if (!media->isRemoved())
 						if (auto it = mTracks.find(media->mid()); it != mTracks.end())
 							if (auto track = it->second.lock(); !track || track->isClosed()) {
-								PLOG_DEBUG << "Negotiation needed to remove track, mid=" << track->mid();
+								PLOG_DEBUG << "Negotiation needed to remove track, mid=" << media->mid();
 								return true;
 							}
 				}