Fix ordering of slot access

* jupyter-server-ioloop-comm.el
(jupyter-server-kernel-connected-p): Do it.
This commit is contained in:
Nathaniel Nicandro 2020-04-01 00:09:31 -05:00
parent a11521dabf
commit b635dbdae6

View file

@ -111,8 +111,9 @@ kernel has a matching ID."
(cl-defmethod jupyter-server-kernel-connected-p ((comm jupyter-server-ioloop-comm) id)
"Return non-nil if COMM has a WebSocket connection to a kernel with ID."
(and (jupyter-comm-alive-p comm)
(member id (process-get (oref (oref comm ioloop) process) :kernel-ids))))
(when (jupyter-comm-alive-p comm)
(with-slots (process) (oref comm ioloop)
(member id (process-get process :kernel-ids)))))
;; `jupyter-server-ioloop-kcomm'