Skip to content

Commit 6444b36

Browse files
sergio-nsknmoinvaz
authored andcommitted
fix: not working JSCoreGTK proxy_execute_* after global reinitialization
1 parent 7c9d8c6 commit 6444b36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

execute_jscore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,9 @@ bool proxy_execute_jscore_global_cleanup(void) {
518518
dlclose(g_proxy_execute_jscore.module);
519519

520520
memset(&g_proxy_execute_jscore, 0, sizeof(g_proxy_execute_jscore));
521+
522+
static const pthread_once_t proxy_execute_jscore_init_flag = PTHREAD_ONCE_INIT;
523+
memcpy(&g_proxy_execute_jscore_init_flag, &proxy_execute_jscore_init_flag, sizeof(proxy_execute_jscore_init_flag));
521524
return true;
522525
}
523526

0 commit comments

Comments
 (0)