Skip to content

Commit

Permalink
Merge pull request #15 from cemerick/gc-405
Browse files Browse the repository at this point in the history
the nREPL server being an Agent was always a private impl detail, fixes gc-405
  • Loading branch information
laurentpetit committed Oct 4, 2012
2 parents aadef59 + ca2b9e3 commit cf1bdc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ccw.core/src/java/ccw/CCWPlugin.java
Expand Up @@ -50,7 +50,6 @@
import ccw.repl.REPLView;
import ccw.util.BundleUtils;
import ccw.util.DisplayUtil;
import clojure.lang.Agent;
import clojure.lang.Keyword;
import clojure.lang.Var;
import clojure.osgi.ClojureOSGi;
Expand Down Expand Up @@ -95,7 +94,7 @@ public synchronized void startREPLServer() throws CoreException {
Object handler = BundleUtils.requireAndGetVar(
getBundle().getSymbolicName(),
"clojure.tools.nrepl.ack/handle-ack").invoke(defaultHandler);
ackREPLServer = (ServerSocket)((Map)((Agent)startServer.invoke(Keyword.intern("handler"), handler)).deref()).get(Keyword.intern("ss"));
ackREPLServer = (ServerSocket)((Map)startServer.invoke(Keyword.intern("handler"), handler)).get(Keyword.intern("server-socket"));
CCWPlugin.log("Started ccw nREPL server: nrepl://localhost:" + ackREPLServer.getLocalPort());
} catch (Exception e) {
CCWPlugin.logError("Could not start plugin-hosted REPL server", e);
Expand Down

0 comments on commit cf1bdc2

Please sign in to comment.