Skip to content

Commit

Permalink
Bug 1264479: don't crash on disappearing data channels. r=bwc
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 3DmM7teByR8
  • Loading branch information
Nils Ohlmeier [:drno] committed Aug 31, 2017
1 parent b0e6526 commit bbacd53
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,11 @@ PeerConnectionImpl::RemoveOldRemoteTracks(RefPtr<PeerConnectionObserver>& aPco)
const std::string& streamId = removedTrack->GetStreamId();
const std::string& trackId = removedTrack->GetTrackId();

if (removedTrack->GetMediaType() == SdpMediaSection::kApplication) {
// TODO do we need to notify content somehow here?
continue;
}

RefPtr<RemoteSourceStreamInfo> info = mMedia->GetRemoteStreamById(streamId);
if (!info) {
MOZ_ASSERT(false, "A stream/track was removed that wasn't in PCMedia. "
Expand Down

0 comments on commit bbacd53

Please sign in to comment.