mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-22 20:01:20 +00:00
Avoid trying to wait for the main app process to exit if no process ID for it is specified
This commit is contained in:
parent
f9238f479b
commit
7b29c29d85
1 changed files with 5 additions and 2 deletions
|
@ -89,8 +89,11 @@ void UpdateInstaller::run() throw ()
|
|||
|
||||
if (m_mode == Setup)
|
||||
{
|
||||
LOG(Info,"Waiting for main app process to finish");
|
||||
ProcessUtils::waitForProcess(m_waitPid);
|
||||
if (m_waitPid != 0)
|
||||
{
|
||||
LOG(Info,"Waiting for main app process to finish");
|
||||
ProcessUtils::waitForProcess(m_waitPid);
|
||||
}
|
||||
|
||||
std::list<std::string> args = updaterArgs();
|
||||
args.push_back("--mode");
|
||||
|
|
Loading…
Reference in a new issue