add stop tun on destroy & update version

This commit is contained in:
Kr328 committed 2020-04-23 10:51:20 +08:00
1 parent 75de6ce041
commit bcf7f793ec
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -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)