aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <cbeok@protonmail.com>2020-06-07 16:53:20 -0500
committerColin Okay <cbeok@protonmail.com>2020-06-07 16:53:20 -0500
commit25621a84a32351b519da5935cab52701b1df19ee (patch)
treed5c4ccc45aec0fe87988b553997ae1d7a3e90a85
parentab4f28c00a01726dbfcb732ef7030642ffb91b6c (diff)
only stop handlers if they exist
-rw-r--r--lazybones.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lazybones.lisp b/lazybones.lisp
index 8027f6e..85341ad 100644
--- a/lazybones.lisp
+++ b/lazybones.lisp
@@ -283,7 +283,8 @@ for the request's path."
(setf *handler* (clack:clackup #'main-handler :port port)))
(defun stop ()
- (clack:stop *handler*))
+ (when *handler*
+ (clack:stop *handler*)))
(defun reload (&key (port 5000))
(stop)