Move setUncaughtExceptionHandler(null) before onStop()

pull/92/head
Andrew Munn 8 years ago
parent 42154e1df5
commit 5b986e1fb4
  1. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/CameraController.java

@ -144,9 +144,9 @@ abstract class CameraController implements CameraPreview.SurfaceCallback {
// Don't check, try stop again.
LOG.i("Stop immediately. State was:", ss());
mState = STATE_STOPPING;
onStop();
// Prevent leaking CameraController.
mHandler.getThread().setUncaughtExceptionHandler(null);
onStop();
mState = STATE_STOPPED;
LOG.i("Stop immediately. Stopped. State is:", ss());
} catch (Exception e) {

Loading…
Cancel
Save