Properly delete processing handler on error

This commit is contained in:
Aang23 2025-12-24 17:45:14 +01:00
parent 3bd1d25887
commit 732576b190
2 changed files with 6 additions and 4 deletions

View file

@ -69,7 +69,7 @@ namespace satdump
catch (std::exception &e)
{
logger->error("Fatal error running pipeline : " + std::string(e.what()));
return;
goto exit_handler;
}
logger->info("Done! Goodbye");
@ -91,9 +91,10 @@ namespace satdump
}
}
pipeline_name = "PROCESSING_DONE"; // TODOREWORK MASSIVE HACK!
eventBus->fire_event<SetIsDoneProcessingEvent>({});
exit_handler:
pipeline_name = "PROCESSING_DONE"; // TODOREWORK MASSIVE HACK!
}
void OffProcessingHandler::drawMenu() {}