Merge pull request #298 from amnezia-vpn/bugfix/android-stop-button
Fix stop button for Android
This commit is contained in:
commit
3ce1e40b43
2 changed files with 5 additions and 4 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9a3cf57a1166c634d43e75f00ff6072938aea5cb
|
Subproject commit 75ab7e2418b83af7f8ed0a448ec5081b37b54442
|
||||||
|
|
@ -411,11 +411,12 @@ void VpnConnection::disconnectFromVpn()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_ANDROID
|
||||||
|
AndroidController::instance()->stop();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!m_vpnProtocol.data()) {
|
if (!m_vpnProtocol.data()) {
|
||||||
emit connectionStateChanged(VpnProtocol::Disconnected);
|
emit connectionStateChanged(VpnProtocol::Disconnected);
|
||||||
#ifdef Q_OS_ANDROID
|
|
||||||
AndroidController::instance()->stop();
|
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue