diff options
author | Colin Okay <cbeok@protonmail.com> | 2020-06-07 16:53:20 -0500 |
---|---|---|
committer | Colin Okay <cbeok@protonmail.com> | 2020-06-07 16:53:20 -0500 |
commit | 25621a84a32351b519da5935cab52701b1df19ee (patch) | |
tree | d5c4ccc45aec0fe87988b553997ae1d7a3e90a85 /lazybones.lisp | |
parent | ab4f28c00a01726dbfcb732ef7030642ffb91b6c (diff) |
only stop handlers if they exist
Diffstat (limited to 'lazybones.lisp')
-rw-r--r-- | lazybones.lisp | 3 |
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) |