fix: Fix crash after Activity is destroyed

Fixes #664
This commit is contained in:
Marc Rousavy 2022-01-03 09:30:40 +01:00
parent db2a883259
commit 1d27f6a06b

View File

@ -229,6 +229,7 @@ class CameraView(context: Context, private val frameProcessorThread: ExecutorSer
cameraExecutor.shutdown() cameraExecutor.shutdown()
takePhotoExecutor.shutdown() takePhotoExecutor.shutdown()
recordVideoExecutor.shutdown() recordVideoExecutor.shutdown()
reactContext.removeLifecycleEventListener(this)
} }
}) })
} }