fix worker termination in example (github issue #98)
This commit is contained in:
parent
c06c399f4f
commit
aac24640b1
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue