Cleanly stop the web UI thread on exit

This commit is contained in:
Flyinghead 2018-09-07 12:57:26 +02:00
parent 50010418ce
commit 562d64bed5
1 changed files with 7 additions and 0 deletions

View File

@ -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)