Skip to content

Commit

Permalink
fix: watcher service mobile data monitoring
Browse files Browse the repository at this point in the history
Fix for a bug where watcher service does not start monitoring mobile data when feature is turned on
  • Loading branch information
zaneschepke committed Jul 1, 2023
1 parent 98da234 commit 4b75381
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ android {

val versionMajor = 1
val versionMinor = 1
val versionPatch = 4
val versionPatch = 5
val versionBuild = 0

defaultConfig {
Original file line number Diff line number Diff line change
@@ -131,7 +131,9 @@ class WireGuardConnectivityWatcherService : ForegroundService() {
if(!settings.isNullOrEmpty()) {
setting = settings[0]
}
watchForWifiConnectivityChanges()
GlobalScope.launch {
watchForWifiConnectivityChanges()
}
if(setting.isTunnelOnMobileDataEnabled) {
GlobalScope.launch {
watchForMobileDataConnectivityChanges()

0 comments on commit 4b75381

Please sign in to comment.