Skip to content

Commit 1f021d0

Browse files
committed
Set MullvadVPNService as non-sticky
If it is set to sticky it could cause unintended behavior in some cases.
1 parent c979b36 commit 1f021d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/service/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadVpnService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class MullvadVpnService : TalpidVpnService() {
104104
"onStartCommand (intent=$intent, action=${intent?.action}, flags=$flags, startId=$startId)"
105105
)
106106

107-
val startResult = super.onStartCommand(intent, flags, startId)
107+
super.onStartCommand(intent, flags, startId)
108108

109109
// Always promote to foreground if connect/disconnect actions are provided to mitigate cases
110110
// where the service would potentially otherwise be too slow running `startForeground`.
@@ -133,7 +133,7 @@ class MullvadVpnService : TalpidVpnService() {
133133
}
134134
}
135135

136-
return startResult
136+
return START_NOT_STICKY
137137
}
138138

139139
override fun onBind(intent: Intent?): IBinder {

0 commit comments

Comments
 (0)