Skip to content

Commit 5646bf8

Browse files
authored
Call ports_changed on the multi-kernel-manager instead of the kernel manager (#1088)
Fixes #1086
1 parent 08697b0 commit 5646bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/kernels/connection/channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def connect(self):
333333
buffer_info = self.multi_kernel_manager.get_buffer(self.kernel_id, self.session_key)
334334
if buffer_info and buffer_info["session_key"] == self.session_key:
335335
self.log.info("Restoring connection for %s", self.session_key)
336-
if self.kernel_manager.ports_changed(self.kernel_id):
336+
if self.multi_kernel_manager.ports_changed(self.kernel_id):
337337
# If the kernel's ports have changed (some restarts trigger this)
338338
# then reset the channels so nudge() is using the correct iopub channel
339339
self.create_stream()

0 commit comments

Comments
 (0)