From 562d64bed54bf78d0ed046d4ad5f03272bf79bf8 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 7 Sep 2018 12:57:26 +0200 Subject: [PATCH] Cleanly stop the web UI thread on exit --- core/nullDC.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/nullDC.cpp b/core/nullDC.cpp index 073996585..2fad2e750 100755 --- a/core/nullDC.cpp +++ b/core/nullDC.cpp @@ -263,6 +263,13 @@ void dc_term() SaveRomFiles(get_writable_data_path("/data/")); TermAudio(); + +#if !defined(TARGET_NO_WEBUI) && !defined(TARGET_NO_THREADS) + extern void sighandler(int sig); + sighandler(0); + webui_thd.WaitToEnd(); +#endif + } #if defined(_ANDROID)