From ea10a3bb7ea337716f4f0743bef05508f3384bec Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Thu, 5 Oct 2023 12:57:56 +0200 Subject: [PATCH] Actor: do not attempt recovery on .outdatedSchema --- ios/PacketTunnelCore/Actor/State+Extensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/PacketTunnelCore/Actor/State+Extensions.swift b/ios/PacketTunnelCore/Actor/State+Extensions.swift index 323a5dbe37ef..cfaed6cf0787 100644 --- a/ios/PacketTunnelCore/Actor/State+Extensions.swift +++ b/ios/PacketTunnelCore/Actor/State+Extensions.swift @@ -101,11 +101,11 @@ extension BlockedStateReason { */ var shouldRestartAutomatically: Bool { switch self { - case .deviceLocked, .outdatedSchema: + case .deviceLocked: return true case .noRelaysSatisfyingConstraints, .readSettings, .invalidAccount, .deviceRevoked, .tunnelAdapter, .unknown, - .deviceLoggedOut: + .deviceLoggedOut, .outdatedSchema: return false } }