Compare commits

...

1 Commits

Author SHA1 Message Date
Zane Schepke 594ed85a71 start sticky 2025-02-22 07:52:16 -05:00
2 changed files with 4 additions and 2 deletions
@@ -35,8 +35,9 @@ class TunnelForegroundService : LifecycleService() {
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
super.onStartCommand(intent, flags, startId)
serviceManager.backgroundService.complete(this)
return super.onStartCommand(intent, flags, startId)
return START_NOT_STICKY
}
fun start(tunnelConf: TunnelConf) {
@@ -100,9 +100,10 @@ class AutoTunnelService : LifecycleService() {
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
super.onStartCommand(intent, flags, startId)
Timber.d("onStartCommand executed with startId: $startId")
serviceManager.autoTunnelService.complete(this)
return super.onStartCommand(intent, flags, startId)
return START_NOT_STICKY
}
fun start() {