flutter: Assert(0) when timeout only on DeveloperMode
This commit is contained in:
parent
115a7c7897
commit
a0cee1bd06
|
@ -288,7 +288,9 @@ class _GamePageState extends State<GamePage> with RouteAware {
|
||||||
break;
|
break;
|
||||||
case 'timeout':
|
case 'timeout':
|
||||||
changeStatus(S.of(context).timeout);
|
changeStatus(S.of(context).timeout);
|
||||||
assert(false);
|
if (Config.developerMode) {
|
||||||
|
assert(false);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
changeStatus('Error: ${response.type}');
|
changeStatus('Error: ${response.type}');
|
||||||
|
|
Loading…
Reference in New Issue