Bug 1333002 - Fix a misleading indentation in PeerConnectionCtx.cpp r=jesup
MozReview-Commit-ID: 1iSHCgsfW0a
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp
@@ -105,19 +105,20 @@ public:
return NS_OK;
}
private:
virtual ~PeerConnectionCtxObserver()
{
nsCOMPtr<nsIObserverService> observerService =
services::GetObserverService();
- if (observerService)
+ if (observerService) {
observerService->RemoveObserver(this, NS_IOSERVICE_OFFLINE_STATUS_TOPIC);
observerService->RemoveObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID);
+ }
}
};
NS_IMPL_ISUPPORTS(PeerConnectionCtxObserver, nsIObserver);
}
namespace mozilla {
@@ -335,17 +336,17 @@ PeerConnectionCtx::EverySecondTelemetryC
}
MOZ_ASSERT(stsThread);
nsAutoPtr<RTCStatsQueries> queries(new RTCStatsQueries);
for (auto p = ctx->mPeerConnections.begin();
p != ctx->mPeerConnections.end(); ++p) {
if (p->second->HasMedia()) {
if (!queries->append(nsAutoPtr<RTCStatsQuery>(new RTCStatsQuery(true)))) {
- return;
+ return;
}
if (NS_WARN_IF(NS_FAILED(p->second->BuildStatsQuery_m(nullptr, // all tracks
queries->back())))) {
queries->popBack();
} else {
MOZ_ASSERT(queries->back()->report);
}
}