fixed rhttp crashing iOS launch
This commit is contained in:
parent
b412877886
commit
4ad1472112
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ void main(List<String> args) async {
|
|||
}
|
||||
MediaKit.ensureInitialized();
|
||||
await RustLib.init();
|
||||
await Rhttp.init();
|
||||
if (!Platform.isIOS) {
|
||||
await Rhttp.init();
|
||||
}
|
||||
if (!(Platform.isAndroid || Platform.isIOS)) {
|
||||
await windowManager.ensureInitialized();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue