Add wait period while suspending

This commit is contained in:
Travis Nickles 2019-07-05 15:22:57 -05:00
parent 8e55e7178b
commit 268d8d5541

View File

@ -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;