Fixed thread leak in Mac OS (#3838)

This commit is contained in:
sauwming 2024-01-23 09:33:44 +08:00 committed by GitHub
parent d762276861
commit 712b06407f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ PJ_DEF(int) pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[],
param.main_func = main_func;
if (pthread_create(&thread, NULL, &main_thread, &param) == 0) {
CFRunLoopRun();
pthread_join(thread, NULL);
}
PJ_UNUSED_ARG(pool);