mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41: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)
|
if (!inHotPlug)
|
||||||
{
|
{
|
||||||
inHotPlug = true;
|
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)
|
while (loopHotplug == true)
|
||||||
{
|
{
|
||||||
|
Thread.Sleep(1500);
|
||||||
Program.rootHub.HotPlug();
|
Program.rootHub.HotPlug();
|
||||||
//TaskRunner.Run(() => { Program.rootHub.HotPlug(uiContext); });
|
//TaskRunner.Run(() => { Program.rootHub.HotPlug(uiContext); });
|
||||||
lock (hotplugCounterLock)
|
lock (hotplugCounterLock)
|
||||||
|
Loading…
Reference in New Issue
Block a user