diff --git a/src/main/clj/clj_camel/util.clj b/src/main/clj/clj_camel/util.clj index 7281915..5e825e1 100644 --- a/src/main/clj/clj_camel/util.clj +++ b/src/main/clj/clj_camel/util.clj @@ -117,7 +117,7 @@ [^SftpEndpoint endpoint ex & body] `(let [~'ops (.createRemoteFileOperations ~endpoint)] (try - (.connect ~'ops (.getConfiguration ~endpoint) ex) + (.connect ~'ops (.getConfiguration ~endpoint) ~ex) ~@body (finally (.disconnect ~'ops)))))