mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Change when delay takes place for hotplug routine
This commit is contained in:
parent
1c2690f020
commit
54b6b2754a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user