summaryrefslogtreecommitdiff
path: root/cider-debug.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-10-03 12:39:19 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-10-03 15:42:25 +0100
commit2fcbec2db09f0316d0780ac1f665c8af81c7026d (patch)
tree4822671f973aec805bd31f1b234b4917d84f666e /cider-debug.el
parenta805d85cdf0b136be60089557d92d4379c0f67a9 (diff)
Fix missing handler for id
It is now safe to call nrepl--mark-id-completed multiple times on the same ID.
Diffstat (limited to 'cider-debug.el')
-rw-r--r--cider-debug.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/cider-debug.el b/cider-debug.el
index dbbc1d71..e8727923 100644
--- a/cider-debug.el
+++ b/cider-debug.el
@@ -130,9 +130,7 @@ This variable must be set before starting the repl connection."
(when (member "need-debug-input" status)
(cider--handle-debug response))
(when (member "done" status)
- (puthash id (gethash id nrepl-pending-requests)
- nrepl-completed-requests)
- (remhash id nrepl-pending-requests))))
+ (nrepl--mark-id-completed id))))
(defun cider--debug-init-connection ()
"Initialize a connection with the cider.debug middleware."