From b5b2fa82ee1461e0f540183c92c394a51cb7bc35 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Wed, 27 Sep 2023 08:56:30 +0200 Subject: [PATCH] refactor: update ConnectionManager.swift --- IVPNClient/Managers/ConnectionManager.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/IVPNClient/Managers/ConnectionManager.swift b/IVPNClient/Managers/ConnectionManager.swift index 591f91b43..4cddb2792 100644 --- a/IVPNClient/Managers/ConnectionManager.swift +++ b/IVPNClient/Managers/ConnectionManager.swift @@ -264,13 +264,9 @@ class ConnectionManager { log(.info, message: "V2Ray start OK") } } - - DispatchQueue.delay(2) { - self.vpnManager.connect(tunnelType: self.settings.connectionProtocol.tunnelType()) - } - } else { - self.vpnManager.connect(tunnelType: self.settings.connectionProtocol.tunnelType()) } + + self.vpnManager.connect(tunnelType: self.settings.connectionProtocol.tunnelType()) } }