mirror of
https://github.com/Livox-SDK/livox_ros_driver.git
synced 2023-04-06 15:49:55 +08:00
Join thread fix
This commit is contained in:
@@ -55,6 +55,9 @@ LdsLvx::~LdsLvx() {
|
|||||||
if (packets_of_frame_.packet != nullptr) {
|
if (packets_of_frame_.packet != nullptr) {
|
||||||
delete[] packets_of_frame_.packet;
|
delete[] packets_of_frame_.packet;
|
||||||
}
|
}
|
||||||
|
if (t_read_lvx_->joinable()) {
|
||||||
|
t_read_lvx_->join();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LdsLvx::PrepareExit(void) {
|
void LdsLvx::PrepareExit(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user