diff --git a/LibSession-Util b/LibSession-Util index fdfd9dbb6..c9a98dbb2 160000 --- a/LibSession-Util +++ b/LibSession-Util @@ -1 +1 @@ -Subproject commit fdfd9dbb698e4ce6e6e08dd1b85eec428ab2077e +Subproject commit c9a98dbb2e2ef45aa85075576247d61355269e1c diff --git a/Session/Meta/AppDelegate.swift b/Session/Meta/AppDelegate.swift index 52eafd404..8dbe48be2 100644 --- a/Session/Meta/AppDelegate.swift +++ b/Session/Meta/AppDelegate.swift @@ -211,7 +211,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Stop all jobs except for message sending and when completed suspend the database JobRunner.stopAndClearPendingJobs(exceptForVariant: .messageSend, using: dependencies) { - if !self.hasCallOngoing() { + if !self.hasCallOngoing() && Singleton.hasAppContext && Singleton.appContext.isInBackground { LibSession.suspendNetworkAccess() Storage.suspendDatabaseAccess() Log.info("[AppDelegate] completed network and database shutdowns.")