mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-13 22:11:03 +00:00
4. fixed when app crashed sometimes after ygg switch off
This commit is contained in:
parent
d169b650f9
commit
5e7ac8cb57
@ -247,11 +247,11 @@ class YggdrasilTunService : VpnService() {
|
|||||||
|
|
||||||
private fun stopVpn(pi: PendingIntent?) {
|
private fun stopVpn(pi: PendingIntent?) {
|
||||||
isClosed = true;
|
isClosed = true;
|
||||||
|
scope!!.coroutineContext.cancelChildren()
|
||||||
tunInputStream!!.close()
|
tunInputStream!!.close()
|
||||||
tunOutputStream!!.close()
|
tunOutputStream!!.close()
|
||||||
tunInterface!!.close()
|
tunInterface!!.close()
|
||||||
tunInterface = null
|
tunInterface = null
|
||||||
scope!!.coroutineContext.cancelChildren()
|
|
||||||
Log.d(TAG,"Stop is running from service")
|
Log.d(TAG,"Stop is running from service")
|
||||||
ygg.stop()
|
ygg.stop()
|
||||||
val intent: Intent = Intent()
|
val intent: Intent = Intent()
|
||||||
|
Loading…
Reference in New Issue
Block a user