From ffe7fc0a0ac250f670c0deaf924467b620747bab Mon Sep 17 00:00:00 2001 From: Johan Kool Date: Thu, 19 Mar 2020 10:40:13 +0100 Subject: [PATCH] Continue instead of early return on unknown key id --- TunnelKit/Sources/Protocols/OpenVPN/OpenVPNSession.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TunnelKit/Sources/Protocols/OpenVPN/OpenVPNSession.swift b/TunnelKit/Sources/Protocols/OpenVPN/OpenVPNSession.swift index c487d04..bb45a12 100644 --- a/TunnelKit/Sources/Protocols/OpenVPN/OpenVPNSession.swift +++ b/TunnelKit/Sources/Protocols/OpenVPN/OpenVPNSession.swift @@ -475,7 +475,7 @@ public class OpenVPNSession: Session { guard let _ = keys[key] else { log.warning("Key with id \(key) not found") // deferStop(.shutdown, OpenVPNError.badKey) - return + continue // JK: This used to be return, but we'd see connections that would stay in Connecting… state forever } // XXX: improve with array reference