diff --git a/TunnelKit/Sources/Core/SessionProxy.swift b/TunnelKit/Sources/Core/SessionProxy.swift index b1be4fa..4bc697f 100644 --- a/TunnelKit/Sources/Core/SessionProxy.swift +++ b/TunnelKit/Sources/Core/SessionProxy.swift @@ -528,7 +528,7 @@ public class SessionProxy { if (code == .hardResetServerV2) && (negotiationKey.controlState == .connected) { deferStop(.shutdown, SessionError.staleSession) return - } else if (code == .softResetV1) && (negotiationKey.state != .softReset) { + } else if (code == .softResetV1) && !negotiationKey.softReset { softReset(isServerInitiated: true) }