mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +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:
parent
17297ee18f
commit
fd64cdd8c2
@ -294,6 +294,7 @@ int ControlThread::run()
|
|||||||
stop_ = true;
|
stop_ = true;
|
||||||
flowgraph_->disconnect();
|
flowgraph_->disconnect();
|
||||||
|
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
// Terminate keyboard thread
|
// Terminate keyboard thread
|
||||||
pthread_t id = keyboard_thread_.native_handle();
|
pthread_t id = keyboard_thread_.native_handle();
|
||||||
keyboard_thread_.detach();
|
keyboard_thread_.detach();
|
||||||
|
Loading…
Reference in New Issue
Block a user