Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
e3a7415637b52516e7576730131a5934b3c697cd
  • Loading branch information
GLinnik21 committed May 8, 2024
1 parent 5fbc017 commit 06cde44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AppMetricaCore/Sources/Reporter/AMAReportersContainer.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ - (void)setReporter:(AMAReporter *)reporter forApiKey:(NSString *)apiKey

- (void)restartPrivacyTimer
{
for (AMAReporter *repoter in self.reporters.objectEnumerator) {
NSDictionary *reporters = nil;
@synchronized (self) {
reporters = [self.reporters copy];
}
for (AMAReporter *repoter in reporters.objectEnumerator) {
[repoter restartPrivacyTimer];
}
}
Expand Down

0 comments on commit 06cde44

Please sign in to comment.