Cleanup threads after yourself

This commit is contained in:
2020-05-27 12:24:14 +02:00
parent 759803389e
commit e6a965bd7a
+6 -2
View File
@@ -150,7 +150,11 @@ int main (int argc, char *argv[])
writer.close_file();
//wait till receive thread is finished
replay_receive_thread.join();
for (auto& reading_thread :reading_threads) {
if (reading_thread.joinable()) {
reading_thread.join();
}
}
return 0;
}