Skip to content

Commit 3322ce7

Browse files
committed
Fix ordering of slot access
* jupyter-server-ioloop-comm.el (jupyter-server-kernel-connected-p): Do it.
1 parent ee8b518 commit 3322ce7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jupyter-server-ioloop-comm.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ kernel has a matching ID."
111111

112112
(cl-defmethod jupyter-server-kernel-connected-p ((comm jupyter-server-ioloop-comm) id)
113113
"Return non-nil if COMM has a WebSocket connection to a kernel with ID."
114-
(and (jupyter-comm-alive-p comm)
115-
(member id (process-get (oref (oref comm ioloop) process) :kernel-ids))))
114+
(when (jupyter-comm-alive-p comm)
115+
(with-slots (process) (oref comm ioloop)
116+
(member id (process-get process :kernel-ids)))))
116117

117118
;; `jupyter-server-ioloop-kcomm'
118119

0 commit comments

Comments
 (0)