From 31de0bf8c68fb96215f17209dbe9fc83ec1f8df5 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 (#589) 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 d2121c047..4a217b88b 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 @@ -113,7 +113,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator.LdnRyu.Proxy public async Task NatPunch() { NatDiscoverer discoverer = new(); - CancellationTokenSource cts = new(1000); + CancellationTokenSource cts = new(5000); NatDevice device;