1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-07 05:18:00 +00:00

Fix program termination with some configurations

This is not a robust solution but fixes termination when URSP is being used. To be improved
This commit is contained in:
Carles Fernandez
2019-02-28 09:33:47 +01:00
parent 17297ee18f
commit fd64cdd8c2

View File

@@ -294,6 +294,7 @@ int ControlThread::run()
stop_ = true;
flowgraph_->disconnect();
std::this_thread::sleep_for(std::chrono::milliseconds(500));
// Terminate keyboard thread
pthread_t id = keyboard_thread_.native_handle();
keyboard_thread_.detach();