You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logv('Warning: emrun got detached from the target browser process. Cannot detect when user closes the browser. Behaving as if --serve_after_close was passed in.')
277
-
ifnotemrun_options.browser:
278
-
logv('Try passing the --browser=/path/to/browser option to avoid this from occurring. See https://github.com/kripken/emscripten/issues/3234 for more discussion.')
279
-
else:
280
-
self.shutdown()
281
-
logv('Browser process has quit. Shutting down web server.. Pass --serve_after_close to keep serving the page even after the browser closes.')
logv('Warning: emrun got detached from the target browser process (the process quit with code '+str(browser_quit_code) +'). Cannot detect when user closes the browser. Behaving as if --serve_after_close was passed in.')
282
+
ifnotemrun_options.browser:
283
+
logv('Try passing the --browser=/path/to/browser option to avoid this from occurring. See https://github.com/kripken/emscripten/issues/3234 for more discussion.')
284
+
else:
285
+
self.shutdown()
286
+
logv('Browser process has quit. Shutting down web server.. Pass --serve_after_close to keep serving the page even after the browser closes.')
282
287
283
288
# Serve HTTP
284
289
self.handle_request()
@@ -356,6 +361,7 @@ class HTTPHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
logv('Warning: emrun got detached from the target browser process. Cannot detect when user closes the browser. Behaving as if --serve_after_close was passed in.')
1106
-
ifnotoptions.browser:
1107
-
logv('Try passing the --browser=/path/to/browser option to avoid this from occurring. See https://github.com/kripken/emscripten/issues/3234 for more discussion.')
1118
+
ifbrowser_process:
1119
+
premature_quit_code=browser_process.poll()
1120
+
ifpremature_quit_code!=None:
1121
+
options.serve_after_close=True
1122
+
logv('Warning: emrun got immediately detached from the target browser process (the process quit with exit code '+str(premature_quit_code) +'). Cannot detect when user closes the browser. Behaving as if --serve_after_close was passed in.')
1123
+
ifnotoptions.browser:
1124
+
logv('Try passing the --browser=/path/to/browser option to avoid this from occurring. See https://github.com/kripken/emscripten/issues/3234 for more discussion.')
0 commit comments