Bug 1460346 - Assert in SetCurrentDriver method of MSG that is called from audio thread or when the thread is not running. r=pehrsons

MozReview-Commit-ID: 7JKcFxxDFCt

--HG--
extra : rebase_source : fe8d0b043117f3b5ecfe3ae36addae340c795875
This commit is contained in:
Alex Chronopoulos 2018-05-25 11:58:58 +03:00
parent cd6f5298c4
commit 43f81a73ac

View File

@ -480,6 +480,7 @@ public:
*/
void SetCurrentDriver(GraphDriver* aDriver)
{
MOZ_ASSERT(mDriver->OnThread() || !mDriver->ThreadRunning());
#ifdef DEBUG
mMonitor.AssertCurrentThreadOwns();
#endif