From 81d08099a7eb654381ab387966d3af656f70f420 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 1 Dec 2018 00:58:50 -0600 Subject: [PATCH] Make sure to enforce actual wait time --- DS4Windows/DS4Control/ControlService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 8920a6d..4fa83b7 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -181,9 +181,9 @@ namespace DS4Windows { if (state && _udpServer == null) { + udpChangeStatus = true; TestQueueBus(() => { - udpChangeStatus = true; _udpServer = new UdpServer(GetPadDetailForIdx); var UDP_SERVER_PORT = Global.getUDPServerPortNum(); @@ -315,7 +315,7 @@ namespace DS4Windows ChangeUDPStatus(true); while (udpChangeStatus == true) { - Task.Delay(100); + Thread.SpinWait(500); } }