Skip to content

Commit 42dfecf

Browse files
committed
Fixed issue with isStarted returning true on iOS after stop has already been called. codenameone/CodenameOne#2867
1 parent 2444a2b commit 42dfecf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

native/ios/com_codename1_camerakit_impl_CameraNativeAccessImpl.m

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ -(void)start{
3737
-(void)stop{
3838
dispatch_sync(dispatch_get_main_queue(), ^{
3939
[captureSession stopRunning];
40+
previewLayer = nil;
4041
});
4142
}
4243

0 commit comments

Comments
 (0)