Skip to content

Commit faefaa8

Browse files
authored
fix: Fix connections not being removed (#4065)
1 parent db81a6c commit faefaa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-vision-camera/ios/Extensions/AVFoundation/AVCaptureSession+containsConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extension AVCaptureSession {
2020
output: ResolvedCameraSessionConnection.Output
2121
) -> Bool {
2222
return self.connections.contains { connection in
23-
return connection.deviceInput == input && connection.isConnectedTo(output: output)
23+
return connection.deviceInput?.device == input && connection.isConnectedTo(output: output)
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)