set camera pointer to nil when stopping session in emulator (#523)
This commit is contained in:
parent
12afd8443a
commit
6421067076
|
@ -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, ^{
|
||||
|
|
Loading…
Reference in New Issue