diff --git a/app/build.gradle.kts b/app/build.gradle.kts index ea406390..135e813e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -17,7 +17,7 @@ android { val versionMajor = 1 val versionMinor = 1 - val versionPatch = 4 + val versionPatch = 5 val versionBuild = 0 defaultConfig { diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/foreground/WireGuardConnectivityWatcherService.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/foreground/WireGuardConnectivityWatcherService.kt index 9cd5f6b4..dcf6497d 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/foreground/WireGuardConnectivityWatcherService.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/foreground/WireGuardConnectivityWatcherService.kt @@ -131,7 +131,9 @@ class WireGuardConnectivityWatcherService : ForegroundService() { if(!settings.isNullOrEmpty()) { setting = settings[0] } - watchForWifiConnectivityChanges() + GlobalScope.launch { + watchForWifiConnectivityChanges() + } if(setting.isTunnelOnMobileDataEnabled) { GlobalScope.launch { watchForMobileDataConnectivityChanges()