IOS-1628 When going to background, only start last sync once. IOS-1628
authorDirk Zimmermann <dz@pep.security>
Fri, 07 Jun 2019 13:50:53 +0200
branchIOS-1628
changeset 8964003cec7ad513
parent 8963 4698e215d6b2
child 8967 16624ad559fb
IOS-1628 When going to background, only start last sync once.
pEpForiOS/AppDelegate.swift
     1.1 --- a/pEpForiOS/AppDelegate.swift	Fri Jun 07 13:50:31 2019 +0200
     1.2 +++ b/pEpForiOS/AppDelegate.swift	Fri Jun 07 13:50:53 2019 +0200
     1.3 @@ -389,7 +389,9 @@
     1.4          case .background:
     1.5              // We have been cancelled because we are entering background.
     1.6              // Quickly sync local changes and clean up.
     1.7 -            stopUsingPepSession()
     1.8 +            // No need to invoke stopUsingPepSession, since this got already called
     1.9 +            // when the app receives `applicationDidEnterBackground`.
    1.10 +            break
    1.11          case .inactive:
    1.12              // We re inactive. Keep services paused -> Do nothing
    1.13              break