File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
sdk/src/main/java/cloud/mindbox/mobile_sdk Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ android.enableJetifier=true
2121kotlin.code.style =official
2222
2323# SDK version property
24- SDK_VERSION_NAME =2.8.5
24+ SDK_VERSION_NAME =2.8.6
Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ object Mindbox : MindboxLog {
9292
9393 private val mutex = Mutex ()
9494
95+ private val inAppMutex = Mutex ()
96+
9597 private var firstInitCall: Boolean = true
9698
9799 /* *
@@ -516,7 +518,7 @@ object Mindbox : MindboxLog {
516518 if (activity != null && lifecycleManager.isCurrentActivityResumed) {
517519 inAppMessageManager.registerCurrentActivity(activity)
518520 mindboxScope.launch {
519- mutex .withLock {
521+ inAppMutex .withLock {
520522 firstInitCall = false
521523 inAppMessageManager.listenEventAndInApp()
522524 inAppMessageManager.initLogs()
@@ -570,8 +572,8 @@ object Mindbox : MindboxLog {
570572 )
571573 if (firstInitCall) {
572574 mindboxScope.launch {
573- mutex.withLock {
574- InitializeLock .await( InitializeLock . State . SAVE_MINDBOX_CONFIG )
575+ InitializeLock .await( InitializeLock . State . SAVE_MINDBOX_CONFIG )
576+ inAppMutex.withLock {
575577 if (! firstInitCall) return @launch
576578 firstInitCall = false
577579 inAppMessageManager.listenEventAndInApp()
You can’t perform that action at this time.
0 commit comments