Skip to content

Commit

Permalink
nrepl: allow killing compilers in other dirac sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Oct 7, 2016
1 parent 87a5d07 commit 573b996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nrepl/dirac/nrepl/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
(throw e)))))

(defn kill-compiler! [compiler-id]
(compilers/unregister-compiler-descriptor! compiler-id))
(sessions/for-each-session (fn [session]
(compilers/unregister-compiler-descriptor! session compiler-id))))

(defn valid-compiler-to-kill? [compiler-id]
(some? (re-matches #"^dirac.*" compiler-id)))
Expand Down

0 comments on commit 573b996

Please sign in to comment.