Add delay for Linux wakeup reconnect

This commit is contained in:
Mykola Baibuz 2025-04-06 20:30:52 +03:00
parent 5ef8254cba
commit 62d9bcaf7f

View file

@ -289,6 +289,9 @@ void VpnConnection::connectToVpn(int serverIndex, const ServerCredentials &crede
void VpnConnection::restartConnection()
{
this->disconnectFromVpn();
#ifdef (Q_OS_LINUX)
QThread::msleep(5000);
#endif
this->connectToVpn(m_serverIndex, m_serverCredentials, m_dockerContainer, m_vpnConfiguration);
}