Merge pull request #20 from lasdasdas/join_thread_fix

Join thread fix
This commit is contained in:
livox
2020-03-30 20:06:45 +08:00
committed by GitHub

View File

@@ -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) {