diff --git a/lib/screens/metering/components/camera_container/bloc_container_camera.dart b/lib/screens/metering/components/camera_container/bloc_container_camera.dart index 86a7999..aa0aa2e 100644 --- a/lib/screens/metering/components/camera_container/bloc_container_camera.dart +++ b/lib/screens/metering/components/camera_container/bloc_container_camera.dart @@ -166,7 +166,7 @@ class CameraContainerBloc extends EvSourceBlocBase _onDeinitialize(DeinitializeEvent _, Emitter emit) async { emit(const CameraLoadingState()); - unawaited(_cameraController?.dispose().then((_) => _cameraController = null)); + await _cameraController?.dispose().then((_) => _cameraController = null); } Future _onZoomChanged(ZoomChangedEvent event, Emitter emit) async {