aboutsummaryrefslogtreecommitdiff
path: root/src/deployment.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/deployment.lisp')
-rw-r--r--src/deployment.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/deployment.lisp b/src/deployment.lisp
index 7d1af93..104a810 100644
--- a/src/deployment.lisp
+++ b/src/deployment.lisp
@@ -38,9 +38,8 @@ preprocessed."
(multiple-value-bind (*connection* return)
(apply #'establish-connection type remaining args)
(if *connection*
- (prog1 (if remaining
- (connect remaining)
- (apply-*host*-propspec))
+ (unwind-protect-in-parent
+ (if remaining (connect remaining) (apply-*host*-propspec))
(connection-teardown *connection*))
return)))))
(let ((*host* (preprocess-host host)))