fix worker termination in example (github issue #98)

This commit is contained in:
Fabrice Bellard 2024-01-08 18:41:03 +01:00
parent c06c399f4f
commit aac24640b1

View File

@ -10,6 +10,7 @@ function handle_msg(e) {
switch(ev.type) {
case "abort":
parent.postMessage({ type: "done" });
parent.onMessage = null; /* terminate the worker */
break;
case "sab":
/* modify the SharedArrayBuffer */