Skip to content

Commit 31453ce

Browse files
committed
set linger in destroy so it exits eventually
1 parent 6b6de4c commit 31453ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/multikernelmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __del__(self) -> None:
124124
if self._created_context and self.context and not self.context.closed:
125125
if self.log:
126126
self.log.debug("Destroying zmq context for %s", self)
127-
self.context.destroy()
127+
self.context.destroy(linger=1000)
128128
try:
129129
super_del = super().__del__ # type:ignore[misc]
130130
except AttributeError:

0 commit comments

Comments
 (0)