Skip to content

Commit

Permalink
Merge pull request #3424 from kevin-bates/fix-leak-iopub
Browse files Browse the repository at this point in the history
Fix leak of iopub object in activity monitoring
  • Loading branch information
takluyver authored Apr 3, 2018
2 parents faa0cab + 5501209 commit bf173a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notebook/services/kernels/kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def shutdown_kernel(self, kernel_id, now=False):
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()
Expand Down

0 comments on commit bf173a8

Please sign in to comment.