mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #3424 from kevin-bates/fix-leak-iopub
Fix leak of iopub object in activity monitoring
This commit is contained in:
commit
bf173a8f02
@ -261,6 +261,7 @@ class MappingKernelManager(MultiKernelManager):
|
||||
self._check_kernel_id(kernel_id)
|
||||
kernel = self._kernels[kernel_id]
|
||||
kernel._activity_stream.close()
|
||||
kernel._activity_stream = None
|
||||
self.stop_buffering(kernel_id)
|
||||
self._kernel_connections.pop(kernel_id, None)
|
||||
self.last_kernel_activity = utcnow()
|
||||
|
Loading…
Reference in New Issue
Block a user