From b6f526449ed76d4c1c533fd61ed1380c4086e8f9 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Thu, 28 Sep 2017 12:10:59 +1300 Subject: [PATCH] bug 1406831 simplify AssertOnGraphThreadOrNotRunning() r=pehrsons mLifecycleState is always > LIFECYCLE_RUNNING when mDetectedNotRunning MozReview-Commit-ID: Ds6ybTv4miA --HG-- extra : rebase_source : 71aea6693026dc919ea6d2096f55152ae12bc58e --- dom/media/MediaStreamGraph.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index 3deb28e0aa7c..ee0a21b5207d 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -1126,7 +1126,6 @@ MediaStreamGraph::AssertOnGraphThreadOrNotRunning() const // if all the safety checks fail, assert we own the monitor if (!graph->mDriver->OnThread()) { if (!(graph->mDetectedNotRunning && - graph->mLifecycleState > MediaStreamGraphImpl::LIFECYCLE_RUNNING && NS_IsMainThread())) { graph->mMonitor.AssertCurrentThreadOwns(); }