From ebe78932bf9619b8fcc9161f8911515c6c597165 Mon Sep 17 00:00:00 2001 From: junepark678 <40409848+junepark678@users.noreply.github.com> Date: Sun, 26 Nov 2023 10:51:33 +0900 Subject: [PATCH] feat(Operations): don't idle timeout during installations --- AltStore/Operations/InstallAppOperation.swift | 2 ++ 1 file changed, 2 insertions(+) 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 {