Skip to content

Commit

Permalink
refactor: update ConnectionManager.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Sep 27, 2023
1 parent 9672f40 commit b5b2fa8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions IVPNClient/Managers/ConnectionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down

0 comments on commit b5b2fa8

Please sign in to comment.