Skip to content

Commit

Permalink
Fix exception to allow compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Xlythe committed Sep 15, 2022
1 parent 553ca72 commit 97900fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ public void close() {
if (mCaptureSession != null) {
try {
mCaptureSession.close();
} catch (CameraAccessException e) {
} catch (Exception e) {
// Instance of CameraAccessException (although not declared).
// Nothing we can do but swallow it.
Log.e(TAG, "Failed to close camera", e);
}
mCaptureSession = null;
Expand Down

0 comments on commit 97900fb

Please sign in to comment.