diff --git a/AltStore/Operations/InstallAppOperation.swift b/AltStore/Operations/InstallAppOperation.swift index d7bb0414..378d9a6d 100644 --- a/AltStore/Operations/InstallAppOperation.swift +++ b/AltStore/Operations/InstallAppOperation.swift @@ -47,6 +47,7 @@ final class InstallAppOperation: ResultOperation let backgroundContext = DatabaseManager.shared.persistentContainer.newBackgroundContext() backgroundContext.perform { + UIApplication.shared.isIdleTimerDisabled = true /* App */ let installedApp: InstalledApp @@ -201,6 +202,7 @@ final class InstallAppOperation: ResultOperation do { try install_ipa(installedApp.bundleIdentifier) installing = false + UIApplication.shared.isIdleTimerDisabled = false installedApp.refreshedDate = Date() self.finish(.success(installedApp)) } catch let error {