Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 3, 2018
1 parent 60f8b53 commit 9e8e58d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/plugins/support/SimulationSupport/src/simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,17 +1145,15 @@ bool Simulation::doStop(bool pElapsedTime)
{
// Stop our worker, if any, and wait for it to be done

if (mWorker) {
if (mWorker->stop(pElapsedTime)) {
mWorkerFinishedEventLoop->exec();
bool res = false;

return true;
} else {
return false;
}
} else {
return false;
if (mWorker && mWorker->stop(pElapsedTime)) {
mWorkerFinishedEventLoop->exec();

res = true;
}

return res;
}

//==============================================================================
Expand Down

0 comments on commit 9e8e58d

Please sign in to comment.