From e86df238a3f2585e1458633d4e12a10798700fda Mon Sep 17 00:00:00 2001 From: Andrew Bulhak Date: Wed, 18 Sep 2024 16:06:16 +0200 Subject: [PATCH] Remove unused variable --- ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift b/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift index b72386219135..e2b3dbd17bfc 100644 --- a/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift +++ b/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift @@ -178,7 +178,7 @@ public final class TunnelMonitor: TunnelMonitorProtocol { nslock.lock() defer { nslock.unlock() } - guard let probeAddress, let newStats = getStats(), + guard let newStats = getStats(), state.connectionState == .connecting || state.connectionState == .connected else { return }