fixed an error when after the first connection with admin config the container model was not updated

This commit is contained in:
vladimir.kuznetsov 2023-10-10 12:50:41 +05:00
parent 45dc302de4
commit 5d59a1a10e
7 changed files with 83 additions and 42 deletions

View file

@ -323,6 +323,7 @@ void VpnConnection::connectToVpn(int serverIndex, const ServerCredentials &crede
ErrorCode e = ErrorCode::NoError;
m_vpnConfiguration = createVpnConfiguration(serverIndex, credentials, container, containerConfig, &e);
emit newVpnConfigurationCreated();
if (e) {
emit connectionStateChanged(Vpn::ConnectionState::Error);
return;