From 138c738ba07f89782971aa4f44713129305a6879 Mon Sep 17 00:00:00 2001 From: Norman Princen Date: Tue, 12 May 2020 12:23:07 -0700 Subject: [PATCH] Minimize SendTo and Read Socket Timeout Delays SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering. They were also using different values between Window and Linux/Mac. The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions. --- xpcPlugin/UDPSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcPlugin/UDPSocket.cpp b/xpcPlugin/UDPSocket.cpp index 440a6a6..110bcea 100644 --- a/xpcPlugin/UDPSocket.cpp +++ b/xpcPlugin/UDPSocket.cpp @@ -121,7 +121,7 @@ namespace XPC #endif return -1; } - if (result == 0) + if (status == 0) { // No data return -1;