Skip to content

Commit 1cc1818

Browse files
committed
don't use future, prevents :cljs/quit, use Thread + bound-fn
1 parent a7f2a85 commit 1cc1818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj/cljs/repl/node.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
proc (-> (ProcessBuilder. (into-array [(get opts :node-command "node")]))
106106
(.redirectInput of)
107107
.start)
108-
_ (do (future (pipe proc (.getInputStream proc) *out*))
109-
(future (pipe proc (.getErrorStream proc) *err*)))
108+
_ (do (.start (Thread. (bound-fn [] (pipe proc (.getInputStream proc) *out*))))
109+
(.start (Thread. (bound-fn [] (pipe proc (.getErrorStream proc) *err*)))))
110110
env (ana/empty-env)
111111
core (io/resource "cljs/core.cljs")
112112
;; represent paths as vectors so we can emit JS arrays, this is to

0 commit comments

Comments
 (0)