diff --git a/client/vpnconnection.cpp b/client/vpnconnection.cpp index d249fae6..3997ed02 100644 --- a/client/vpnconnection.cpp +++ b/client/vpnconnection.cpp @@ -39,7 +39,7 @@ VpnConnection::VpnConnection(std::shared_ptr settings, QObject *parent { #if defined(Q_OS_IOS) || defined(MACOS_NE) m_checkTimer.setInterval(1000); - connect(IosController::Instance(), &IosController::connectionStateChanged, this, &VpnConnection::onConnectionStateChanged); + connect(IosController::Instance(), &IosController::connectionStateChanged, this, &VpnConnection::setConnectionState); connect(IosController::Instance(), &IosController::bytesChanged, this, &VpnConnection::onBytesChanged); #endif }