Add unbinding and destroying vpn service after disconnection
This commit is contained in:
parent
cbd6755aa5
commit
0b6dc5bcfc
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ class AmneziaActivity : QtActivity() {
|
||||||
|
|
||||||
ServiceEvent.DISCONNECTED -> {
|
ServiceEvent.DISCONNECTED -> {
|
||||||
QtAndroidController.onVpnDisconnected()
|
QtAndroidController.onVpnDisconnected()
|
||||||
|
doUnbindService()
|
||||||
}
|
}
|
||||||
|
|
||||||
ServiceEvent.RECONNECTING -> {
|
ServiceEvent.RECONNECTING -> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue