Skip to content

Commit

Permalink
Fix stop button for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
outspace committed Aug 23, 2023
1 parent 895bd57 commit 5a4dec3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/vpnconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,12 @@ void VpnConnection::disconnectFromVpn()
}
#endif

if (!m_vpnProtocol.data()) {
emit connectionStateChanged(VpnProtocol::Disconnected);
#ifdef Q_OS_ANDROID
AndroidController::instance()->stop();
AndroidController::instance()->stop();
#endif

if (!m_vpnProtocol.data()) {
emit connectionStateChanged(VpnProtocol::Disconnected);
return;
}

Expand Down

0 comments on commit 5a4dec3

Please sign in to comment.