mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Fix ordering of slot access
* jupyter-server-ioloop-comm.el (jupyter-server-kernel-connected-p): Do it.
This commit is contained in:
parent
a11521dabf
commit
b635dbdae6
1 changed files with 3 additions and 2 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue