From c50baa4802a9e178142046c228e099bfcd6968d5 Mon Sep 17 00:00:00 2001 From: Vadim Date: Thu, 6 Jul 2023 20:30:35 +0200 Subject: [PATCH] await dispose --- .../components/camera_container/bloc_container_camera.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {