set camera pointer to nil when stopping session in emulator (#523)

This commit is contained in:
Philip Nuzhnyi 2017-01-23 03:33:56 +00:00 committed by Zack Story
parent 12afd8443a
commit 6421067076
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ RCT_EXPORT_METHOD(hasFlash:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRej
- (void)stopSession {
#if TARGET_IPHONE_SIMULATOR
self.camera = nil;
return;
#endif
dispatch_async(self.sessionQueue, ^{