mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Make sure to enforce actual wait time
This commit is contained in:
parent
26bbfdbf98
commit
81d08099a7
@ -181,9 +181,9 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
if (state && _udpServer == null)
|
if (state && _udpServer == null)
|
||||||
{
|
{
|
||||||
|
udpChangeStatus = true;
|
||||||
TestQueueBus(() =>
|
TestQueueBus(() =>
|
||||||
{
|
{
|
||||||
udpChangeStatus = true;
|
|
||||||
_udpServer = new UdpServer(GetPadDetailForIdx);
|
_udpServer = new UdpServer(GetPadDetailForIdx);
|
||||||
var UDP_SERVER_PORT = Global.getUDPServerPortNum();
|
var UDP_SERVER_PORT = Global.getUDPServerPortNum();
|
||||||
|
|
||||||
@ -315,7 +315,7 @@ namespace DS4Windows
|
|||||||
ChangeUDPStatus(true);
|
ChangeUDPStatus(true);
|
||||||
while (udpChangeStatus == true)
|
while (udpChangeStatus == true)
|
||||||
{
|
{
|
||||||
Task.Delay(100);
|
Thread.SpinWait(500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user