This is what I did on a project branched off of ClojureScript One: https://github.com/pandeiro/multiedit/blob/multi-edit/src/app/clj/one/sample/repl.clj
It saves the server instance to an atom and adds (stop) and (restart) functions. Just an idea. M On Sat, Mar 10, 2012 at 6:36 AM, Pierre-Henry Perret <phper...@gmail.com> wrote: > Yes, good question. It leads to another one: is ther a clojure hook to stop > the server ? > > I personally kill the process to sweep out the vm and then can restart > again. > > Le jeudi 8 mars 2012 09:21:58 UTC+1, George Oliver a écrit : >> >> hi, I'm just starting with ClojureScript and ClojureScript One. >> Sometimes working with One I kill the cljs-repl for whatever reason >> (something hangs, I make some mistake and can't correct it, etcetera); >> when I go to restart (by running lein repl again), I then can't >> restart the cljs-repl. I get, >> >> BindException Address already in use: JVM_Bind >> java.net.PlainSocketImpl.socketBind >> >> What's the right way to restart in this situation? Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en