Merge pull request #1335 from LegendOfDragoon/master

Wait for previous process to terminate
This commit is contained in:
zilmar 2017-07-10 16:12:03 +10:00 committed by GitHub
commit 134453967d
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ bool pjutil::TerminatedExistingExe()
if (TerminateProcess(hHandle, 0))
{
bTerminated = true;
WaitForSingleObject(hHandle, 30 * 1000);
}
else
{