fixed rhttp crashing iOS launch

This commit is contained in:
Schnitzel5 2024-09-09 15:47:31 +02:00
parent b412877886
commit 4ad1472112

View file

@ -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();
}