Tried to get rid of crashes on sequential vpn turn on/off

This commit is contained in:
Alex Kh 2021-12-23 13:13:55 +04:00
parent 56754d616b
commit 9ca8c66c47
6 changed files with 18 additions and 10 deletions

View file

@ -82,6 +82,9 @@ ErrorCode IOSVpnProtocol::start()
QString protocol = result["protocol"].toString();
if (!m_controller)
initialize();
switch (m_protocol) {
case amnezia::Proto::OpenVpn:
if (currentProto != m_protocol) {