Skip to content

Commit

Permalink
Add nullptr check when delivering audio (lynckia#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Mar 15, 2017
1 parent b8934e1 commit 412e198
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erizo/src/erizo/OneToManyProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ namespace erizo {

std::map<std::string, std::shared_ptr<MediaSink>>::iterator it;
for (it = subscribers.begin(); it != subscribers.end(); ++it) {
(*it).second->deliverAudioData(audio_packet);
if ((*it).second != nullptr) {
(*it).second->deliverAudioData(audio_packet);
}
}

return 0;
Expand Down

0 comments on commit 412e198

Please sign in to comment.