From a16618bb517c7621562a5dfab92933f2b1923c02 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 21 Apr 2020 18:23:34 +0200 Subject: [PATCH] Fix state consistency issue --- lib/ui/screens/call_screen.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ui/screens/call_screen.dart b/lib/ui/screens/call_screen.dart index 3adbd53..ed64ac3 100644 --- a/lib/ui/screens/call_screen.dart +++ b/lib/ui/screens/call_screen.dart @@ -348,10 +348,12 @@ class _CallScreenState extends SafeState { } /// Handles menu selection - void _handleSelectedMenuOption(_PopupMenuOption option) { + void _handleSelectedMenuOption(_PopupMenuOption option) async { switch (option) { + // Stop streaming case _PopupMenuOption.STOP_STREAMING: - _stopStreaming(); + await _stopStreaming(); + setState(() {}); break; } }