Skip to content

Commit

Permalink
Resolve getStats promise even if the stream cannot be locked (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Aug 15, 2019
1 parent dec57de commit 6df6273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erizoAPI/MediaStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ void StatCallWorker::Execute() {
stream->getJSONStats([&stat_promise] (std::string stats) {
stat_promise.set_value(stats);
});
} else {
stat_promise.set_value(std::string("{}"));
}
stat_future.wait();
stat_ = stat_future.get();
Expand Down

0 comments on commit 6df6273

Please sign in to comment.