Skip to content

Commit bfc7615

Browse files
author
FNPCMDs
authored
Reset _isConnected var
If state is equal to ConnectivityResult.none, then there is no connection with LiveQuery server (for example when internet is disconnected). _setReconnect function will now retry connection.
1 parent 9c76d67 commit bfc7615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/network/parse_live_query.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ class LiveQueryReconnectingController {
9494
_retryState = 0;
9595
}
9696
_isOnline = state != ParseConnectivityResult.none;
97+
if(state == ConnectivityResult.none) {
98+
_isConnected = false;
99+
}
97100
if (debug) {
98101
print('$DEBUG_TAG: $state');
99102
}

0 commit comments

Comments
 (0)