summaryrefslogtreecommitdiff
path: root/cider-interaction.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-08-28 19:56:56 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2015-08-28 19:56:56 +0300
commit2149f43c13e2057ee9a59e512dda7a4bdf7f2ca8 (patch)
treed77d5d00cacb64a720d82726be66002cf1591ab9 /cider-interaction.el
parent41efdcaefdd6d9f37d545da5252bf5ee1c3f3fd2 (diff)
Add explicit connection param to nrepl-sync-request:close
Diffstat (limited to 'cider-interaction.el')
-rw-r--r--cider-interaction.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-interaction.el b/cider-interaction.el
index 2c0e7d65..7555351c 100644
--- a/cider-interaction.el
+++ b/cider-interaction.el
@@ -2339,7 +2339,7 @@ the string contents of the region into a formatted string."
(interactive)
(let ((selected-session (completing-read "Close nREPL session: " (nrepl-sessions (cider-current-repl-buffer)))))
(when selected-session
- (nrepl-sync-request:close selected-session)
+ (nrepl-sync-request:close (cider-current-repl-buffer) selected-session)
(message "Closed nREPL session %s" selected-session))))
;;; quiting
@@ -2349,9 +2349,9 @@ the string contents of the region into a formatted string."
(with-current-buffer buffer
(setq nrepl--closing-connection t)
(when nrepl-session
- (nrepl-sync-request:close nrepl-session))
+ (nrepl-sync-request:close (cider-current-repl-buffer) nrepl-session))
(when nrepl-tooling-session
- (nrepl-sync-request:close nrepl-tooling-session))
+ (nrepl-sync-request:close (cider-current-repl-buffer) nrepl-tooling-session))
(when (get-buffer-process buffer)
(delete-process (get-buffer-process buffer))))
(kill-buffer buffer)))