framework: Clean up task manager on close_framework()

This prevents crashes due to the tasks it spawns continuing to run

Backport of a32030d46e
This commit is contained in:
rdb 2024-11-26 18:16:01 +01:00
parent cbd25a4d80
commit 6b3ed01756
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ close_framework() {
_event_handler.remove_all_hooks();
_task_mgr.cleanup();
_is_open = false;
_made_default_pipe = false;
_default_pipe.clear();