jupyter-handle-message: Only examine :execute-reply of owned requests

This commit is contained in:
Nathaniel Nicandro 2019-03-29 12:29:16 -05:00
parent d4e24d7870
commit 03a8067e6e
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -816,11 +816,11 @@ are taken:
(requests (oref client requests)) (requests (oref client requests))
(req (gethash pmsg-id requests))) (req (gethash pmsg-id requests)))
;; Update the state of the client ;; Update the state of the client
(cl-case (jupyter-message-type msg) (pcase (jupyter-message-type msg)
(:status (:status
(oset client execution-state (oset client execution-state
(jupyter-message-get msg :execution_state))) (jupyter-message-get msg :execution_state)))
((:execute-input :execute-reply) ((or :execute-input (and (guard req) :execute-reply))
(oset client execution-count (oset client execution-count
(1+ (jupyter-message-get msg :execution_count))))) (1+ (jupyter-message-get msg :execution_count)))))
(if (not req) (if (not req)