emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot c43dff4 35/69: On request timeout, clear it from


From: João Távora
Subject: [elpa] externals/eglot c43dff4 35/69: On request timeout, clear it from the deferred actions
Date: Fri, 22 Jun 2018 11:55:00 -0400 (EDT)

branch: externals/eglot
commit c43dff4d31b724c9ce2e9fba1f742384885abb9b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    On request timeout, clear it from the deferred actions
    
    Noticed by Filipp Gunbin <address@hidden>
    
    * jsonrpc.el (jsonrpc--async-request-1): Clear deferred action in
      timeout handler.
---
 jsonrpc.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/jsonrpc.el b/jsonrpc.el
index 1bd71c1..c032687 100644
--- a/jsonrpc.el
+++ b/jsonrpc.el
@@ -601,6 +601,8 @@ TIMEOUT is nil)."
                      timeout nil
                      (lambda ()
                        (remhash id (jsonrpc--request-continuations connection))
+                       (remhash (list deferred buf)
+                                (jsonrpc--deferred-actions connection))
                        (if timeout-fn (funcall timeout-fn)
                          (jsonrpc--debug
                           connection `(:timed-out ,method :id ,id



reply via email to

[Prev in Thread] Current Thread [Next in Thread]