Merge pull request #1335 from LegendOfDragoon/master
Wait for previous process to terminate
This commit is contained in:
commit
134453967d
|
@ -107,6 +107,7 @@ bool pjutil::TerminatedExistingExe()
|
||||||
if (TerminateProcess(hHandle, 0))
|
if (TerminateProcess(hHandle, 0))
|
||||||
{
|
{
|
||||||
bTerminated = true;
|
bTerminated = true;
|
||||||
|
WaitForSingleObject(hHandle, 30 * 1000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue