add stop tun on destroy & update version
This commit is contained in:
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -10,8 +10,8 @@ buildscript {
|
||||
this["gMinSdkVersion"] = 24
|
||||
this["gTargetSdkVersion"] = 29
|
||||
|
||||
this["gVersionCode"] = 10209
|
||||
this["gVersionName"] = "1.2.9"
|
||||
this["gVersionCode"] = 10210
|
||||
this["gVersionName"] = "1.2.10"
|
||||
|
||||
this["gKotlinVersion"] = kotlinVersion
|
||||
this["gKotlinCoroutineVersion"] = "1.3.5"
|
||||
|
||||
@@ -92,6 +92,8 @@ class TunService : VpnService(), CoroutineScope by MainScope() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
TunModule.requestStop()
|
||||
|
||||
ServiceStatusProvider.serviceRunning = false
|
||||
|
||||
service.broadcastClashStopped(reason)
|
||||
|
||||
Reference in new issue
Block a user