Join thread fix

This commit is contained in:
diegoalonso29
2020-03-26 14:04:36 +01:00
parent 1bd671effb
commit 0cf8671c85

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