Merge "Camera2: Ignore exception on double-completed capture sequences." into nyc-dev

This commit is contained in:
Eino-Ville Talvala
2016-04-20 23:55:09 +00:00
committed by Android (Google) Code Review

View File

@@ -628,7 +628,12 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession
* close the camera further by unconfiguring and then firing {@code onClosed}.</p>
*/
private void finishPendingSequence(int sequenceId) {
mSequenceDrainer.taskFinished(sequenceId);
try {
mSequenceDrainer.taskFinished(sequenceId);
} catch (IllegalStateException e) {
// Workaround for b/27870771
Log.w(TAG, e.getMessage());
}
}
private class SequenceDrainListener implements TaskDrainer.DrainListener {