guard against deadlock by checking if we're already shutting down
This commit is contained in:
parent
4844c882bd
commit
553a94bc1f
|
@ -127,7 +127,7 @@ void requestShutdown()
|
|||
|
||||
void atexitCallback()
|
||||
{
|
||||
if (ok())
|
||||
if (ok() && !isShuttingDown())
|
||||
{
|
||||
ROS_INFO("shutting down due to exit() or end of main() without cleanup of all NodeHandles");
|
||||
shutdown();
|
||||
|
|
Loading…
Reference in New Issue