Control commit
This commit is contained in:
parent
1ad060a816
commit
35a3f6cba3
1 changed files with 6 additions and 3 deletions
|
@ -275,7 +275,8 @@ public class SegpassCamera {
|
|||
mBackgroundThread.join();
|
||||
mBackgroundThread = null;
|
||||
mBackgroundHandler = null;
|
||||
} catch (Exception e) {
|
||||
} catch (InterruptedException e) {
|
||||
mBackgroundThread.interrupt();
|
||||
Log.d(TAG, "InterruptedException@stopBackgroundThread(): " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
@ -515,7 +516,8 @@ public class SegpassCamera {
|
|||
} catch (CameraAccessException e) {
|
||||
Log.e(TAG, "CameraAccessException@openCamera(): " + e.getMessage());
|
||||
mCameraCallback.onCameraInitError(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
} catch (InterruptedException e) {
|
||||
mBackgroundThread.interrupt();
|
||||
Log.e(TAG, "InterruptedException@openCamera(): " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
@ -538,7 +540,8 @@ public class SegpassCamera {
|
|||
mImageReader.close();
|
||||
mImageReader = null;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (InterruptedException e) {
|
||||
mBackgroundThread.interrupt();
|
||||
Log.e(TAG, "InterruptedException@closeCamera(): " + e.getMessage());
|
||||
} finally {
|
||||
mCameraOpenCloseLock.release();
|
||||
|
|
Loading…
Reference in a new issue