Skip to content

Commit 689ed7d

Browse files
cemerickdnolen
authored and
dnolen
committed
CLJS-1192: eliminate JDK8 API dependency in cljs.repl.node
1 parent 9441795 commit 689ed7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/cljs/repl/node.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
;; we really do want system-default encoding here
8383
(with-open [^java.io.Reader in (-> in InputStreamReader. BufferedReader.)]
8484
(loop [buf (char-array 1024)]
85-
(when (.isAlive proc)
85+
(when (try (.exitValue proc) false (catch IllegalThreadStateException _ true))
8686
(try
8787
(let [len (.read in buf)]
8888
(when-not (neg? len)

0 commit comments

Comments
 (0)