зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3e6be7780c
Коммит
b6f526449e
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче