Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Sep 3, 2024
1 parent 6a0eeea commit 758a01a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/apis/core/connectivity/connectivity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class ConnectivityState implements IConnectivity {
@override
Future<void> init() async {
if (_initialized) return;
final result = await Connectivity().checkConnectivity();
_updateConnectionStatus(result);
Connectivity().onConnectivityChanged.listen(
_updateConnectionStatus,
);
Expand Down

0 comments on commit 758a01a

Please sign in to comment.