summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c
index 6e0ef35..8408b94 100644
--- a/lora_pkt_fwd/src/lora_pkt_fwd.c
+++ b/lora_pkt_fwd/src/lora_pkt_fwd.c
@@ -1799,9 +1799,10 @@ int main(int argc, char** argv)
pthread_cancel(thrid_down); /* don't wait for downstream thread */
pthread_cancel(thrid_jit); /* don't wait for jit thread */
pthread_cancel(thrid_timersync); /* don't wait for timer sync thread */
+ pthread_cancel(thrid_valid); /* don't wait for validation thread */
+
if (gps_enabled == true) {
pthread_cancel(thrid_gps); /* don't wait for GPS thread */
- pthread_cancel(thrid_valid); /* don't wait for validation thread */
i = lgw_gps_disable(&gpsdata);
if (i == LGW_HAL_SUCCESS) {
@@ -1811,7 +1812,7 @@ int main(int argc, char** argv)
}
}
- pthread_join(thrid_spectralscan, NULL); /* don't wait for spec scan thread */
+ pthread_join(thrid_spectralscan, NULL); /* wait for spec scan thread */
/* if an exit signal was received, try to quit properly */
if (exit_sig) {