fix: Crashing when no internet is available
This commit is contained in:
parent
bdb9ea4b1e
commit
680bbe1bb4
@ -56,9 +56,9 @@ public class MoxdnsAndroidPlugin implements FlutterPlugin, MethodCallHandler {
|
||||
}});
|
||||
}
|
||||
result.success(tmp);
|
||||
} catch (IOException ex) {
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
result.error("1", ex.getMessage(), ex.getStackTrace());
|
||||
result.success(new ArrayList());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user