From 727ac79ebcd0ffcbfb6ef58ca678d7ebbd089a58 Mon Sep 17 00:00:00 2001 From: Josh <48849543+kruumy@users.noreply.github.com> Date: Sun, 26 Jan 2025 20:40:10 -0500 Subject: [PATCH] Increase NAT discovery timeout to 5000ms 1000ms was too fast on some slower networks. It would lead to an early cancellation before device could be found. --- .../Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs index 598fb654f..6460b75dc 100644 --- a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs +++ b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/LdnRyu/Proxy/P2pProxyServer.cs @@ -111,7 +111,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy public async Task NatPunch() { NatDiscoverer discoverer = new NatDiscoverer(); - CancellationTokenSource cts = new CancellationTokenSource(1000); + CancellationTokenSource cts = new CancellationTokenSource(5000); NatDevice device;