From 94bd23f2a42197a6d3af10fc099c3b6793e5b31d Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Wed, 18 Dec 2024 20:26:44 -0500 Subject: [PATCH] fix: bug starting app while no connectivity --- .../com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt index 6a6759a..5980db6 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/AppViewModel.kt @@ -81,7 +81,9 @@ constructor( viewModelScope.launch { initPin() initServices() - initTunnel() + launch { + initTunnel() + } appReadyCheck() } }