fix: watcher service mobile data monitoring

Fix for a bug where watcher service does not start monitoring mobile data when feature is turned on
This commit is contained in:
Zane Schepke
2023-07-01 01:09:35 -04:00
parent 98da234ef9
commit 4b75381adb
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ android {
val versionMajor = 1
val versionMinor = 1
val versionPatch = 4
val versionPatch = 5
val versionBuild = 0
defaultConfig {
@@ -131,7 +131,9 @@ class WireGuardConnectivityWatcherService : ForegroundService() {
if(!settings.isNullOrEmpty()) {
setting = settings[0]
}
watchForWifiConnectivityChanges()
GlobalScope.launch {
watchForWifiConnectivityChanges()
}
if(setting.isTunnelOnMobileDataEnabled) {
GlobalScope.launch {
watchForMobileDataConnectivityChanges()