Bug 1587366 - Do not call VRManager::Shutdown immediately when the app is paused. r=daoshengmu,kip

Do not call VRManager::Shutdown immediately when the app is paused.

Differential Revision: https://phabricator.services.mozilla.com/D49280

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Imanol Fernandez 2019-10-16 23:12:05 +00:00
Родитель 3ea3f20309
Коммит 7c0ea68b6d
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -305,9 +305,8 @@ void VRManager::TaskTimerCallback(nsITimer* aTimer, void* aClosure) {
if (self->mAppPaused) {
// When the apps goes the background (e.g. Android) we should stop the
// tasks and shutdown.
// tasks.
self->StopTasks();
self->Shutdown();
}
}