From 25621a84a32351b519da5935cab52701b1df19ee Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Sun, 7 Jun 2020 16:53:20 -0500 Subject: only stop handlers if they exist --- lazybones.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lazybones.lisp') 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) -- cgit v1.2.3