Merge pull request #298 from amnezia-vpn/bugfix/android-stop-button

Fix stop button for Android
This commit is contained in:
pokamest 2023-08-25 14:40:35 -07:00 committed by GitHub
commit 3ce1e40b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 9a3cf57a1166c634d43e75f00ff6072938aea5cb
Subproject commit 75ab7e2418b83af7f8ed0a448ec5081b37b54442

View file

@ -411,11 +411,12 @@ void VpnConnection::disconnectFromVpn()
}
#endif
#ifdef Q_OS_ANDROID
AndroidController::instance()->stop();
#endif
if (!m_vpnProtocol.data()) {
emit connectionStateChanged(VpnProtocol::Disconnected);
#ifdef Q_OS_ANDROID
AndroidController::instance()->stop();
#endif
return;
}