fixed an infinite loop
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 14 Sep 2021 20:11:13 +0000 (15:11 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 14 Sep 2021 20:11:13 +0000 (15:11 -0500)
static/src/index.js

index 62c7734f602b4a08c0aac5785e84df2652c6214b..51b7f860d617be813c583cbc56bf4718540555fa 100644 (file)
@@ -43,6 +43,8 @@ async function run_wasm(wasm_bytes) {
             }
 
             case 'terminated': {
+                wasm_worker.terminate();
+
                 wasm_worker = null;
                 update_running_msg();
                 break;