diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 80f8149..c8791b7 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -2549,13 +2549,18 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question if (!state) { Program.rootHub.ChangeMotionEventStatus(state); - await TaskRunner.Delay(100); - Program.rootHub.ChangeUDPStatus(state); + await TaskRunner.Delay(100).ContinueWith((t) => + { + Program.rootHub.ChangeUDPStatus(state); + }); } else { Program.rootHub.ChangeUDPStatus(state); - Program.rootHub.ChangeMotionEventStatus(state); + await TaskRunner.Delay(100).ContinueWith((t) => + { + Program.rootHub.ChangeMotionEventStatus(state); + }); } nUDUdpPortNum.Enabled = state;