From 68d3330c59f77c44d0f98af1ae08c6c04b03178d Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 25 Jul 2018 17:01:24 +0200 Subject: [PATCH] more elegant solution to waiting on user abort --- project.clj | 2 +- src/leiningen/neo4j.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 1e1c936..df194f6 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject joshavg/lein-neo4j "0.2.0" +(defproject joshavg/lein-neo4j "0.3.0" :description "neo4j server invokable from leiningen" :url "https://gitea.heevyis.ninja/josha/lein-neo4j" :license {:name "GPL-3.0" diff --git a/src/leiningen/neo4j.clj b/src/leiningen/neo4j.clj index 8ab4e2b..09cc3d8 100644 --- a/src/leiningen/neo4j.clj +++ b/src/leiningen/neo4j.clj @@ -12,4 +12,4 @@ config (get-in project [:neo4j :config] {}) server (CommunityBootstrapper.)] (.start server path (Optional/empty) config) - (while true (Thread/sleep 10000)))) + (while (not= nil (read-line)))))