Merge pull request #3424 from kevin-bates/fix-leak-iopub

Fix leak of iopub object in activity monitoring
This commit is contained in:
Thomas Kluyver 2018-04-03 11:27:08 +02:00 committed by GitHub
commit bf173a8f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()