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;
|
||||
case 'timeout':
|
||||
changeStatus(S.of(context).timeout);
|
||||
assert(false);
|
||||
if (Config.developerMode) {
|
||||
assert(false);
|
||||
}
|
||||
return;
|
||||
default:
|
||||
changeStatus('Error: ${response.type}');
|
||||
|
|
Loading…
Reference in New Issue