Sub-GHz: Fix RAW files again

This commit is contained in:
WillyJL
2025-09-07 14:15:48 +02:00
parent f131facd8a
commit f09942a4a3

View File

@@ -292,9 +292,9 @@ void* subghz_protocol_encoder_raw_alloc(SubGhzEnvironment* environment) {
void subghz_protocol_encoder_raw_stop(void* context) {
furi_check(context);
SubGhzProtocolEncoderRAW* instance = context;
furi_check(instance->file_worker_encoder);
instance->is_running = false;
if(subghz_file_encoder_worker_is_running(instance->file_worker_encoder)) {
if(instance->file_worker_encoder &&
subghz_file_encoder_worker_is_running(instance->file_worker_encoder)) {
subghz_file_encoder_worker_stop(instance->file_worker_encoder);
subghz_file_encoder_worker_free(instance->file_worker_encoder);
instance->file_worker_encoder = NULL;