SubGh: fix a race condition (#1376)

This commit is contained in:
Astra 2022-07-06 17:28:31 +03:00 committed by GitHub
parent e17dae2d00
commit c72b678510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,13 +237,13 @@ bool subghz_tx_rx_worker_start(SubGhzTxRxWorker* instance, uint32_t frequency) {
instance->worker_running = true;
furi_thread_start(instance->thread);
if(furi_hal_subghz_is_tx_allowed(frequency)) {
instance->frequency = frequency;
res = true;
}
furi_thread_start(instance->thread);
return res;
}