We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9441795 commit 689ed7dCopy full SHA for 689ed7d
src/clj/cljs/repl/node.clj
@@ -82,7 +82,7 @@
82
;; we really do want system-default encoding here
83
(with-open [^java.io.Reader in (-> in InputStreamReader. BufferedReader.)]
84
(loop [buf (char-array 1024)]
85
- (when (.isAlive proc)
+ (when (try (.exitValue proc) false (catch IllegalThreadStateException _ true))
86
(try
87
(let [len (.read in buf)]
88
(when-not (neg? len)
0 commit comments