mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
only join cThread if created
This commit is contained in:
@@ -185,7 +185,10 @@ public:
|
|||||||
running_ = false;
|
running_ = false;
|
||||||
|
|
||||||
pThread_.join();
|
pThread_.join();
|
||||||
cThread_.join();
|
if (cThread_.joinable())
|
||||||
|
{
|
||||||
|
cThread_.join();
|
||||||
|
}
|
||||||
notifier_.stopped(name_);
|
notifier_.stopped(name_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user