diff --git a/applications/external b/applications/external index 06f4573aa..57d118e92 160000 --- a/applications/external +++ b/applications/external @@ -1 +1 @@ -Subproject commit 06f4573aa13e77498fc1fa4d61bf47856091df17 +Subproject commit 57d118e929c116bc97d4f7bda391cae712083403 diff --git a/lib/toolbox/run_parallel.c b/lib/toolbox/run_parallel.c index fbb727129..439949cf4 100644 --- a/lib/toolbox/run_parallel.c +++ b/lib/toolbox/run_parallel.c @@ -1,21 +1,12 @@ #include "run_parallel.h" -#include #include -static void run_parallel_pending_callback(void* context, uint32_t arg) { - UNUSED(arg); - - FuriThread* thread = context; - furi_thread_join(thread); - furi_thread_free(thread); -} - -static void run_parallel_thread_state(FuriThreadState state, void* context) { +static void run_parallel_thread_state(FuriThread* thread, FuriThreadState state, void* context) { UNUSED(context); if(state == FuriThreadStateStopped) { - furi_timer_pending_callback(run_parallel_pending_callback, furi_thread_get_current(), 0); + furi_thread_free(thread); } }