From 8a0f0564b93f00b0f63953d78a3405c04990c14b Mon Sep 17 00:00:00 2001 From: Alessio Caiazza Date: Wed, 1 Dec 2021 16:09:52 +0100 Subject: [PATCH] Ensure proper finalization is done in emulator mode --- openrtx/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openrtx/src/main.c b/openrtx/src/main.c index aff3ca73..1f966d6f 100644 --- a/openrtx/src/main.c +++ b/openrtx/src/main.c @@ -88,5 +88,6 @@ int main(void) pthread_create(&ui_thread, NULL, ui_task, NULL); sdl_task(); + pthread_join(ui_thread, NULL); #endif }