mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 03:14:56 +00:00
Fix occasional segfault when exiting with enter+q if Acquisition_XX.blocking=false
This commit is contained in:
parent
78d90a0bc4
commit
3bcac95964
@ -659,7 +659,10 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
|
||||
<< ", doppler_step: " << d_doppler_step
|
||||
<< ", use_CFAR_algorithm_flag: " << (d_use_CFAR_algorithm_flag ? "true" : "false");
|
||||
|
||||
lk.unlock();
|
||||
if (d_acq_parameters.blocking)
|
||||
{
|
||||
lk.unlock();
|
||||
}
|
||||
|
||||
// Doppler frequency grid loop
|
||||
if (!d_step_two)
|
||||
@ -782,7 +785,11 @@ void pcps_acquisition::acquisition_core(uint64_t samp_count)
|
||||
}
|
||||
}
|
||||
|
||||
lk.lock();
|
||||
if (d_acq_parameters.blocking)
|
||||
{
|
||||
lk.lock();
|
||||
}
|
||||
|
||||
if (!d_acq_parameters.bit_transition_flag)
|
||||
{
|
||||
if (d_test_statistics > d_threshold)
|
||||
|
Loading…
Reference in New Issue
Block a user