mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1039884 - Let ControlMessages added by runnables in stable state be run during shutdown. r=roc r=karlt
This commit is contained in:
parent
b173507d67
commit
03363ed023
@ -1713,9 +1713,6 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG)
|
||||
mPostedRunInStableState = false;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < runnables.Length(); ++i) {
|
||||
runnables[i]->Run();
|
||||
}
|
||||
for (uint32_t i = 0; i < controlMessagesToRunDuringShutdown.Length(); ++i) {
|
||||
controlMessagesToRunDuringShutdown[i]->RunDuringShutdown();
|
||||
}
|
||||
@ -1724,6 +1721,10 @@ MediaStreamGraphImpl::RunInStableState(bool aSourceIsMSG)
|
||||
mCanRunMessagesSynchronously = mDetectedNotRunning &&
|
||||
mLifecycleState >= LIFECYCLE_WAITING_FOR_THREAD_SHUTDOWN;
|
||||
#endif
|
||||
|
||||
for (uint32_t i = 0; i < runnables.Length(); ++i) {
|
||||
runnables[i]->Run();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user