feat:fix dirty props cannot be rendered in promise

This commit is contained in:
pengfei.zhou
2021-03-04 14:35:34 +08:00
committed by osborn
parent aa56fd93d9
commit 936bd60293
10 changed files with 123 additions and 2 deletions

View File

@@ -198,8 +198,10 @@ - (BOOL)interceptType:(NSString *)type command:(NSString *)cmd payload:(NSDictio
} @finally {
DoricLog(@"Unlock:%@", payload);
dispatch_semaphore_t semaphore = self.semaphores[callId];
[self.semaphores removeObjectForKey:callId];
DC_UNLOCK(semaphore);
if (semaphore) {
[self.semaphores removeObjectForKey:callId];
DC_UNLOCK(semaphore);
}
}
}
}