Wait for previous process to terminate

The new process will not have read/write access to config files if it
does not wait until previous processes have been terminated.
This commit is contained in:
LegendOfDragoon 2017-07-09 21:16:12 -07:00
parent e541998629
commit cd17e986d4
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
{