Skip to content

Commit

Permalink
Make _emscripten_run_callback_on_thread asynchronous
Browse files Browse the repository at this point in the history
...fixing a regression introduced in c41f659
"Remove use of legacy proxy API from library_html5.js. NFC (#20370)".

Fixes: #22442
  • Loading branch information
stbergmann committed Aug 23, 2024
1 parent 14cb3a3 commit ad4ba26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/lib/html5/callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void _emscripten_run_callback_on_thread(pthread_t t,
.user_data = user_data,
};

if (!emscripten_proxy_sync(q, t, do_callback, &arg)) {
assert(false && "emscripten_proxy_sync failed");
if (!emscripten_proxy_async(q, t, do_callback, &arg)) {
assert(false && "emscripten_proxy_async failed");
}
}

0 comments on commit ad4ba26

Please sign in to comment.