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
parent 3ea3f20309
commit 7c0ea68b6d

View File

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