Fix error handling in CMIDriver::DoMainLoop after r215223 (MI)

llvm-svn: 232713
This commit is contained in:
Ilia K 2015-03-19 08:54:17 +00:00
parent 87b1302a84
commit 30a4ba1721
1 changed files with 4 additions and 3 deletions

View File

@ -529,18 +529,19 @@ CMIDriver::DoMainLoop(void)
if (!StartWorkerThreads())
return MIstatus::failure;
// App is not quitting currently
m_bExitApp = false;
if (HaveExecutableFileNamePathOnCmdLine())
{
if (!LocalDebugSessionStartupExecuteCommands())
{
StopWorkerThreads();
SetErrorDescription(MIRSRC(IDS_MI_INIT_ERR_LOCAL_DEBUG_SESSION));
return MIstatus::failure;
}
}
// App is not quitting currently
m_bExitApp = false;
// While the app is active
while (!m_bExitApp)
{