Skip to content

Commit

Permalink
Start the monitor before manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Sep 22, 2016
1 parent b6bd36b commit 7152771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/TLM/TLMCoSimulationThread.cpp
Expand Up @@ -47,7 +47,7 @@ TLMCoSimulationThread::TLMCoSimulationThread(TLMCoSimulationOutputWidget *pTLMCo
void TLMCoSimulationThread::run()
{
removeGeneratedFiles();
runManager();
runMonitor();
exec();
}

Expand Down Expand Up @@ -145,7 +145,6 @@ void TLMCoSimulationThread::managerProcessStarted()
{
setIsManagerProcessRunning(true);
emit sendManagerStarted();
runMonitor();
}

/*!
Expand Down Expand Up @@ -197,6 +196,7 @@ void TLMCoSimulationThread::monitorProcessStarted()
{
setIsMonitorProcessRunning(true);
emit sendMonitorStarted();
runManager();
QFileInfo fileInfo(mpTLMCoSimulationOutputWidget->getTLMCoSimulationOptions().getFileName());
// give 5 secs to tlmmonitor to create .run file
mProgressFile.setFileName(fileInfo.absoluteDir().absolutePath() + "/" + fileInfo.completeBaseName() + ".run");
Expand Down

0 comments on commit 7152771

Please sign in to comment.