updateNetwork method
Implementation
Future<void> updateNetwork() async {
if (updatingNetwork) {
return;
}
if (useLocalRouter) {
network = XchgNetwork.localRouter();
return;
}
updatingNetwork = true;
try {
network = await networkContainerLoadFromInternet();
if (network != null) {
/*print(
"networkContainerLoadFromInternet ok ${network!.name} source:${network!.debugSource}");*/
}
} catch (ex) {
print("networkContainerLoadFromInternet ex $ex");
}
updatingNetwork = false;
}