Skip to content

Commit

Permalink
Fix deadlock on first app launch (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrtobolski authored Oct 5, 2021
1 parent 6e5dc12 commit d93ee39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Segment/Internal/SEGIntegrationsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ - (NSString *)cachedAnonymousId

- (void)onAppForeground:(NSNotification *)note
{
[self refreshSettings];
seg_dispatch_specific_async(_serialQueue, ^{
[self refreshSettings];
});
}

- (void)handleAppStateNotification:(NSString *)notificationName
Expand Down

0 comments on commit d93ee39

Please sign in to comment.