Skip to content

Commit ad4ba26

Browse files
committed
Make _emscripten_run_callback_on_thread asynchronous
...fixing a regression introduced in c41f659 "Remove use of legacy proxy API from library_html5.js. NFC (#20370)". Fixes: #22442
1 parent 14cb3a3 commit ad4ba26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/lib/html5/callback.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void _emscripten_run_callback_on_thread(pthread_t t,
3636
.user_data = user_data,
3737
};
3838

39-
if (!emscripten_proxy_sync(q, t, do_callback, &arg)) {
40-
assert(false && "emscripten_proxy_sync failed");
39+
if (!emscripten_proxy_async(q, t, do_callback, &arg)) {
40+
assert(false && "emscripten_proxy_async failed");
4141
}
4242
}

0 commit comments

Comments
 (0)