|
@@ -88,11 +88,13 @@ class CoreController extends GetxController {
|
|
|
}
|
|
|
|
|
|
Future<void> changeConfig(String configPath) async{
|
|
|
- try{
|
|
|
- await dio.put('/configs', data: {"path": configPath});
|
|
|
- }
|
|
|
- catch(e){
|
|
|
- await dio.put('/configs', data: {"path": configPath});
|
|
|
+ for (var i = 0 ; i< 5; i++) {
|
|
|
+ try {
|
|
|
+ await dio.put('/configs', data: {"path": configPath});
|
|
|
+ }
|
|
|
+ catch (e) {
|
|
|
+ await dio.put('/configs', data: {"path": configPath});
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|