Skip to content

Commit

Permalink
Call ports_changed on the multi-kernel-manager instead of the kerne…
Browse files Browse the repository at this point in the history
…l manager (#1088)

Fixes #1086
  • Loading branch information
Zsailer authored Nov 23, 2022
1 parent 08697b0 commit 5646bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/kernels/connection/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def connect(self):
buffer_info = self.multi_kernel_manager.get_buffer(self.kernel_id, self.session_key)
if buffer_info and buffer_info["session_key"] == self.session_key:
self.log.info("Restoring connection for %s", self.session_key)
if self.kernel_manager.ports_changed(self.kernel_id):
if self.multi_kernel_manager.ports_changed(self.kernel_id):
# If the kernel's ports have changed (some restarts trigger this)
# then reset the channels so nudge() is using the correct iopub channel
self.create_stream()
Expand Down

0 comments on commit 5646bf8

Please sign in to comment.