change destroy order
This commit is contained in:
parent
a1c0e8e30c
commit
d32f714050
@ -60,8 +60,9 @@ - (DoricViewNode *)targetViewNode:(NSString *)viewId {
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[self callEntity:DORIC_ENTITY_DESTROY withArgumentsArray:@[]];
|
||||
[[DoricContextManager instance] destroyContext:self];
|
||||
[self callEntity:DORIC_ENTITY_DESTROY withArgumentsArray:@[]];
|
||||
[self.driver destroyContext:self.contextId];
|
||||
}
|
||||
|
||||
- (DoricAsyncResult *)callEntity:(NSString *)method, ... {
|
||||
|
@ -72,7 +72,6 @@ - (void)destroyContext:(DoricContext *)context {
|
||||
dispatch_sync(self.mapQueue, ^() {
|
||||
[self.doricContextMap removeObjectForKey:contextId];
|
||||
});
|
||||
[context.driver destroyContext:contextId];
|
||||
}
|
||||
|
||||
- (NSArray *)aliveContexts {
|
||||
|
Reference in New Issue
Block a user