mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
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 {
|
- (void)stopSession {
|
||||||
#if TARGET_IPHONE_SIMULATOR
|
#if TARGET_IPHONE_SIMULATOR
|
||||||
|
self.camera = nil;
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
dispatch_async(self.sessionQueue, ^{
|
dispatch_async(self.sessionQueue, ^{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user