mirror of
https://github.com/netbirdio/ios-client.git
synced 2026-09-23 09:28:33 -07:00
Set currentNetworkType = nil on network restore
So the first post-restore path update won't incorrectly skip a type-change restart due to stale state
This commit is contained in:
@@ -130,6 +130,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
|
||||
if wasStoppedDueToNoNetwork {
|
||||
AppLogger.shared.log("Network restored after unavailability - signaling UI")
|
||||
wasStoppedDueToNoNetwork = false
|
||||
currentNetworkType = nil
|
||||
setNetworkUnavailableFlag(false)
|
||||
// Don't need to restart - Go SDK handles reconnection automatically
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user