Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Local Mapping got stucked at System::Shutdown() if it was already stopped (e.g. if Localization Mode is active)
  • Loading branch information
raulmur committed Jan 25, 2016
1 parent 0b86438 commit aac9b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LocalMapping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ void LocalMapping::Run()
else if(Stop())
{
// Safe area to stop
while(isStopped())
while(isStopped() && !CheckFinish())
{
usleep(3000);
}
if(CheckFinish())
break;
}

ResetIfRequested();
Expand Down

0 comments on commit aac9b96

Please sign in to comment.