From 1a8c4de53806bb0eaf6e77c1cc0a364796bb7024 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 9 Aug 2024 15:34:57 +0200 Subject: [PATCH] Reduce delay for failover test attempts Should manually calculating gateway IP really resolve the issue with false-positive failover tests, the delay shouldn't be necessary at all. Reference: a1688413724d1644c50f3d66f3ba28b34aa07eae Signed-off-by: Simon Rozman --- eduVPN/ViewModels/VPN/Session.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eduVPN/ViewModels/VPN/Session.cs b/eduVPN/ViewModels/VPN/Session.cs index 9fc99ff7..20c4ca46 100644 --- a/eduVPN/ViewModels/VPN/Session.cs +++ b/eduVPN/ViewModels/VPN/Session.cs @@ -434,7 +434,7 @@ public Session(ConnectWizard wizard, Server server, Configuration config, Expira var gateway = new IPAddress(gatewayBytes).ToString(); for (; ; ) { - if (SessionAndWindowInProgress.Token.WaitHandle.WaitOne(1000)) + if (SessionAndWindowInProgress.Token.WaitHandle.WaitOne(250)) return; foreach (var iface in NetworkInterface.GetAllNetworkInterfaces() .Where(n =>