mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-24 05:51:16 +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;
|
||||
this.Invoke((System.Action)(() => BtnStartStop_Clicked()));
|
||||
wasrunning = true;
|
||||
|
||||
while (this.changingService)
|
||||
{
|
||||
Thread.SpinWait(500);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user