mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Jsonrpc: fix bug in jsonrpc--remove
* lisp/jsonrpc.el (jsonrpc--remove): Check timer before cancelling it. (Version): Bump to 1.2.24 See https://github.com/joaotavora/eglot/issues/1342
This commit is contained in:
parent
c11cdf1858
commit
43612103c2
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: João Távora <joaotavora@gmail.com>
|
||||
;; Keywords: processes, languages, extensions
|
||||
;; Version: 1.0.23
|
||||
;; Version: 1.0.24
|
||||
;; Package-Requires: ((emacs "25.2"))
|
||||
|
||||
;; This is a GNU ELPA :core package. Avoid functionality that is not
|
||||
|
|
@ -782,7 +782,7 @@ Return the full continuation (ID SUCCESS-FN ERROR-FN TIMER)"
|
|||
(if deferred-spec (remhash deferred-spec defs))
|
||||
(when-let ((ass (assq id conts)))
|
||||
(cl-destructuring-bind (_ _ _ _ timer) ass
|
||||
(cancel-timer timer))
|
||||
(when timer (cancel-timer timer)))
|
||||
(setf conts (delete ass conts))
|
||||
ass)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue