 (defn stop-watcher [name]
   (let [conf (get @db-watchers name)]
     (when conf
-      (reset! (:continue conf) false)
+      (.lazySet (:continue conf) false)
       (.interrupt (:thread conf))
       (swap! db-watchers dissoc name))))
 

          dbname     (-> conf :dbconf :subname)
          sleep-time (:sleep-time conf 1000)]
      (loop [conf     conf
             continue @(:continue conf)]
        (if continue
          (do
            (log/infof "db-watcher[%s] polling" dbname)

   [clojure.java.jdbc     :as jdbc]
   [clojure.tools.logging :as log])
  (:import
   [java.sql Connection         DriverManager]
   [java.util.concurrent.atomic AtomicBoolean]))


;; See:   "http://jdbc.postgresql.org/documentation/91/listennotify.html"
