Skip to content

Commit d93ee39

Browse files
Fix deadlock on first app launch (#1009)
1 parent 6e5dc12 commit d93ee39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Segment/Internal/SEGIntegrationsManager.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ - (NSString *)cachedAnonymousId
156156

157157
- (void)onAppForeground:(NSNotification *)note
158158
{
159-
[self refreshSettings];
159+
seg_dispatch_specific_async(_serialQueue, ^{
160+
[self refreshSettings];
161+
});
160162
}
161163

162164
- (void)handleAppStateNotification:(NSString *)notificationName

0 commit comments

Comments
 (0)