TF-3323 Fix web socket still not reconnect when network disconnected
This commit is contained in:
@@ -46,6 +46,8 @@ class NetworkConnectionController extends GetxController {
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
Connectivity get connectivity => _connectivity;
|
||||
|
||||
void _getCurrentNetworkConnectionState() async {
|
||||
final listConnectionResult = await Future.wait([
|
||||
_connectivity.checkConnectivity(),
|
||||
|
||||
@@ -43,6 +43,8 @@ class NetworkConnectionController extends GetxController {
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
Connectivity get connectivity => _connectivity;
|
||||
|
||||
void _getCurrentNetworkConnectionState() async {
|
||||
final connectionResult = await _connectivity.checkConnectivity();
|
||||
log('NetworkConnectionController::_getCurrentNetworkConnectionState():connectionResult: $connectionResult');
|
||||
|
||||
Reference in New Issue
Block a user