From b92156f57d470a386d56c84d51ed6ea515ca80a8 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 23 Jul 2018 00:15:47 -0500 Subject: [PATCH] Changed thread affinity of UdpServer instance --- DS4Windows/DS4Control/ControlService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index acd3bab..f4953f1 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -135,7 +135,7 @@ namespace DS4Windows { //sp.Stream = Properties.Resources.EE; // Cause thread affinity to not be tied to main GUI thread - tempThread = new Thread(() => { x360Bus = new X360Device(); }); + tempThread = new Thread(() => { x360Bus = new X360Device(); _udpServer = new UdpServer(GetPadDetailForIdx); }); tempThread.Priority = ThreadPriority.AboveNormal; tempThread.IsBackground = true; tempThread.Start(); @@ -153,8 +153,6 @@ namespace DS4Windows PreviousState[i] = new DS4State(); ExposedState[i] = new DS4StateExposed(CurrentState[i]); } - - _udpServer = new UdpServer(GetPadDetailForIdx); } private void WarnExclusiveModeFailure(DS4Device device)