mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Make sure to create UDP server outside GUI if first enabled after program launch
More of an incremental change. Probably should remove async and await
This commit is contained in:
parent
532444de48
commit
84558f805f
@ -2549,13 +2549,18 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
if (!state)
|
||||
{
|
||||
Program.rootHub.ChangeMotionEventStatus(state);
|
||||
await TaskRunner.Delay(100);
|
||||
await TaskRunner.Delay(100).ContinueWith((t) =>
|
||||
{
|
||||
Program.rootHub.ChangeUDPStatus(state);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
Program.rootHub.ChangeUDPStatus(state);
|
||||
await TaskRunner.Delay(100).ContinueWith((t) =>
|
||||
{
|
||||
Program.rootHub.ChangeMotionEventStatus(state);
|
||||
});
|
||||
}
|
||||
|
||||
nUDUdpPortNum.Enabled = state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user