iOS:fix iOS DoricLibrary init error

This commit is contained in:
pengfei.zhou 2020-02-19 15:09:13 +08:00 committed by osborn
parent 0961cb9fc9
commit 3198e6145d

View File

@ -111,11 +111,11 @@ - (instancetype)init {
_nodes = [NSMutableDictionary new]; _nodes = [NSMutableDictionary new];
_envVariables = [NSMutableDictionary new]; _envVariables = [NSMutableDictionary new];
[self innerRegister]; [self innerRegister];
_monitors = [NSMutableSet new];
[self registerMonitor:[DoricDefaultMonitor new]];
[DoricLibraries.instance.libraries enumerateObjectsUsingBlock:^(DoricLibrary *obj, BOOL *stop) { [DoricLibraries.instance.libraries enumerateObjectsUsingBlock:^(DoricLibrary *obj, BOOL *stop) {
[obj load:self]; [obj load:self];
}]; }];
_monitors = [NSMutableSet new];
[self registerMonitor:[DoricDefaultMonitor new]];
} }
return self; return self;
} }