aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-10 18:20:54 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-10 18:20:54 -0800
commit6e77a01fabb47edf569c517b3566d8ba6dd43480 (patch)
treef73abc6bcabcd1a6b03ed0832f5922f7995e4126 /src/library_browser.js
parent0ddbe59d2ad687bec6427ac38362993e472ad567 (diff)
keep runtime alive if workers are called
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index d917778d..d6526d9c 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -958,6 +958,8 @@ mergeInto(LibraryManager.library, {
},
emscripten_call_worker: function(id, funcName, data, size, callback, arg) {
+ Module['noExitRuntime'] = true; // should we only do this if there is a callback?
+
funcName = Pointer_stringify(funcName);
var info = Browser.workers[id];
var callbackId = -1;