From a0cee1bd069da96823b9a26c3f1e7d93b1062e4c Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 10 Apr 2021 09:41:00 +0800 Subject: [PATCH] flutter: Assert(0) when timeout only on DeveloperMode --- src/ui/flutter_app/lib/widgets/game_page.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 021a2e01..33b57c85 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -288,7 +288,9 @@ class _GamePageState extends State with RouteAware { break; case 'timeout': changeStatus(S.of(context).timeout); - assert(false); + if (Config.developerMode) { + assert(false); + } return; default: changeStatus('Error: ${response.type}');