mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 14:59:22 +00:00
Pop routes when WebSocket connection is interrupted
This commit is contained in:
parent
20ea964337
commit
02e60ad87c
@ -62,6 +62,10 @@ class _InitializeWidgetState extends SafeState<InitializeWidget> {
|
|||||||
print("Could not connect to server! $e");
|
print("Could not connect to server! $e");
|
||||||
print(stack);
|
print(stack);
|
||||||
|
|
||||||
|
// Pop until we reach main route
|
||||||
|
Navigator.of(context)
|
||||||
|
.popUntil((settings) => ModalRoute.of(context).isCurrent);
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
_error = true;
|
_error = true;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user