Merge branch 'bugfix/restart_timer_crash' into 'release/10_7_3'
Allow session handler objects to be initialized without MainActor to inline... ### Summary Adjust session creation for async await incompatible code. ### Crash Trace https://console.firebase.google.com/project/api-project-396418606732/crashlytics/app/ios:com.vzw.hss.myverizon/issues/235a6b2af0c9f6b0311f61dff3f01104?versions=10.7.2%20(20280)&time=last-seven-days&sessionEventKey=c0188bc4f7ec477796d67ab09c9ad3d9_1823128717650065330 Co-authored-by: Kyle Hedden <kyle.hedden@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/265
This commit is contained in:
commit
30f7737b4c
@ -25,12 +25,14 @@
|
|||||||
return MVMCoreActionUtility.fatalClassCheck(object: MVMCoreObject.sharedInstance()?.sessionHandler)
|
return MVMCoreActionUtility.fatalClassCheck(object: MVMCoreObject.sharedInstance()?.sessionHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
public override init() {
|
nonisolated public override init() {
|
||||||
super.init()
|
super.init()
|
||||||
// Adds notifications for if the app entered the background/foreground.
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
|
Task { @MainActor in
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
// Adds notifications for if the app entered the background/foreground.
|
||||||
resetStartTime()
|
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
|
||||||
|
NotificationCenter.default.addObserver(self, selector: #selector(appEnteredForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user