Skip to content

Commit

Permalink
Fix closure data when retrying caps disco request
Browse files Browse the repository at this point in the history
The closure data used in jabber-process-caps-modern was a three-element
list, while the one used in jabber-caps-try-next was a cons cell.  This
led to crashes in jabber-process-caps-info-error when there were more
than one contact with the same caps hash, all failing to respond.
  • Loading branch information
legoscia committed Jun 12, 2014
1 parent 1ea60b5 commit 0df441a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jabber-disco.el
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ Return (IDENTITIES FEATURES), or nil if not in cache."
"get"
`(query ((xmlns . "http://jabber.org/protocol/disco#info")
(node . ,(concat node "#" ver))))
#'jabber-process-caps-info-result key
#'jabber-process-caps-info-error key))
#'jabber-process-caps-info-result (list hash node ver)
#'jabber-process-caps-info-error (list hash node ver)))
;; No, forget about it for now.
(remhash key jabber-caps-cache))))))

Expand Down

0 comments on commit 0df441a

Please sign in to comment.