diff --git a/client/vpnconnection.cpp b/client/vpnconnection.cpp index 62c296ae..24f2a699 100644 --- a/client/vpnconnection.cpp +++ b/client/vpnconnection.cpp @@ -289,7 +289,7 @@ void VpnConnection::connectToVpn(int serverIndex, const ServerCredentials &crede void VpnConnection::restartConnection() { this->disconnectFromVpn(); -#ifdef (Q_OS_LINUX) +#ifdef Q_OS_LINUX QThread::msleep(5000); #endif this->connectToVpn(m_serverIndex, m_serverCredentials, m_dockerContainer, m_vpnConfiguration);