mount

2016-06-12T13:52:18.000021Z

I keep getting a ConcurrentModificationException java.util.HashMap$HashIterator.nextNode (:-1) every second time I restart my http-kit webserver with mount. The server defstate looks like this:

(mount/defstate webserver
  :start (do
           (log/info "Starting http-kit webserver")
           (let [stop-fn (http-kit/run-server (var main-ring-handler)
                                              {:port default-port})]
               {:port    (:local-port (meta stop-fn))
                :stop-fn (fn [] (stop-fn :timeout 100))}))
  :stop (do (log/info "Stopping http-kit webserver")
            ((:stop-fn webserver))))
Any idea what might be causing this

2016-06-12T13:52:36.000022Z

so i'll restart, get that error, but then restart again and things will be fine

2016-06-12T13:52:59.000023Z

(the error occurs during the stopping)