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:
Diego Romar
2025-12-15 19:50:44 -03:00
parent 1e09f8091c
commit eadb036e63
@@ -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