mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes incorrectly handling misc. CancellationErrors
This commit is contained in:
@@ -1150,6 +1150,9 @@ private extension MyAppsViewController
|
||||
catch OperationError.cancelled
|
||||
{
|
||||
// Ignore
|
||||
DispatchQueue.main.async {
|
||||
installedApp.isActive = false
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -1222,6 +1225,13 @@ private extension MyAppsViewController
|
||||
|
||||
print("Finished deactivating app:", app.bundleIdentifier)
|
||||
}
|
||||
catch OperationError.cancelled
|
||||
{
|
||||
// Ignore
|
||||
DispatchQueue.main.async {
|
||||
installedApp.isActive = true
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
print("Failed to deactivate app:", error)
|
||||
|
||||
@@ -223,6 +223,11 @@ private extension BackgroundRefreshAppsOperation
|
||||
{
|
||||
shouldPresentAlert = false
|
||||
}
|
||||
catch ~OperationError.Code.serverNotFound
|
||||
{
|
||||
shouldPresentAlert = false
|
||||
}
|
||||
|
||||
catch
|
||||
{
|
||||
print("Failed to refresh apps in background.", error)
|
||||
|
||||
Reference in New Issue
Block a user