From 54b6b2754a056dae323a2b0a9c9ed81e6f16c5db Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 12 Mar 2019 16:03:08 -0500 Subject: [PATCH] Change when delay takes place for hotplug routine --- DS4Windows/DS4Forms/DS4Form.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index c9f2f97..257ff22 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -1114,7 +1114,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question if (!inHotPlug) { inHotPlug = true; - TaskRunner.Run(() => { Thread.Sleep(1500); InnerHotplug2(); }); + TaskRunner.Run(() => { InnerHotplug2(); }); } } } @@ -1145,6 +1145,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question while (loopHotplug == true) { + Thread.Sleep(1500); Program.rootHub.HotPlug(); //TaskRunner.Run(() => { Program.rootHub.HotPlug(uiContext); }); lock (hotplugCounterLock)