mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-03 10:32:32 +01:00
Add wait period while suspending
This commit is contained in:
parent
8e55e7178b
commit
268d8d5541
@ -583,6 +583,11 @@ namespace DS4Windows.Forms
|
|||||||
Program.rootHub.suspending = true;
|
Program.rootHub.suspending = true;
|
||||||
this.Invoke((System.Action)(() => BtnStartStop_Clicked()));
|
this.Invoke((System.Action)(() => BtnStartStop_Clicked()));
|
||||||
wasrunning = true;
|
wasrunning = true;
|
||||||
|
|
||||||
|
while (this.changingService)
|
||||||
|
{
|
||||||
|
Thread.SpinWait(500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user