summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2026-01-26 12:36:42 +0100
committerEmīls <emils@mullvad.net>2026-01-26 12:36:42 +0100
commit5546a01418e05860c22595550b6bc6aec1446300 (patch)
treeb280c4d68d27abfcc859375a68cf5705ef998646
parent570ec395127d99c5bc8df23cc66c8ae857c5d9a0 (diff)
downloadmullvadvpn-connection-loss-event-when-the-connection-takes-too-long-ios-1298.tar.xz
mullvadvpn-connection-loss-event-when-the-connection-takes-too-long-ios-1298.zip
Reset timeout reference when starting the monitorconnection-loss-event-when-the-connection-takes-too-long-ios-1298
-rw-r--r--ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift b/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift
index fddc9dc748..539308099e 100644
--- a/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift
+++ b/ios/PacketTunnelCore/TunnelMonitor/TunnelMonitor.swift
@@ -305,6 +305,7 @@ public final class TunnelMonitor: TunnelMonitorProtocol, @unchecked Sendable {
try pinger.startPinging(destAddress: probeAddress)
state.connectionState = .connecting
+ state.timeoutReference = Date()
startConnectivityCheckTimer()
} catch {
logger.error(error: error, message: "Failed to open socket.")