fix(perf): fix for #3736 (#3978)

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
[publish]
This commit is contained in:
Anderson Addo
2020-07-23 05:19:27 -04:00
committed by GitHub
parent 0dbe48e588
commit 430881032b

View File

@@ -44,11 +44,11 @@ static __strong NSMutableDictionary *httpMetrics;
- (void)dealloc {
@synchronized ([self class]) {
for (NSString *key in traces) {
for (NSString *key in [traces allKeys]) {
[traces removeObjectForKey:key];
}
for (NSString *key in httpMetrics) {
for (NSString *key in [httpMetrics allKeys]) {
[httpMetrics removeObjectForKey:key];
}
}