iOS: fix posibblely mutated crash when onException
This commit is contained in:
@@ -100,6 +100,7 @@ - (instancetype)init {
|
||||
@"localeLanguage": [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode] ?: @"",
|
||||
@"localeCountry": [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] ?: @"",
|
||||
}.mutableCopy;
|
||||
[self.registry registerMonitor:[DoricDefaultMonitor new]];
|
||||
[self ensureRunOnJSThread:^() {
|
||||
[self.profile start:@"Init"];
|
||||
self.timers = [[NSMutableDictionary alloc] init];
|
||||
@@ -111,7 +112,6 @@ - (instancetype)init {
|
||||
self.initialized = YES;
|
||||
[self.profile end:@"Init"];
|
||||
}];
|
||||
[self.registry registerMonitor:[DoricDefaultMonitor new]];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
Reference in New Issue
Block a user