bug 1406831 simplify AssertOnGraphThreadOrNotRunning() r=pehrsons

mLifecycleState is always > LIFECYCLE_RUNNING when mDetectedNotRunning

MozReview-Commit-ID: Ds6ybTv4miA

--HG--
extra : rebase_source : 71aea6693026dc919ea6d2096f55152ae12bc58e
This commit is contained in:
Karl Tomlinson 2017-09-28 12:10:59 +13:00
Родитель 3e6be7780c
Коммит b6f526449e
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -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();
}