1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +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
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

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();