Skip to content

Commit 7b45731

Browse files
committed
ThreadedClient: schedule IOLoop.stop in IOLoop thread
calling stop doesn’t wake the IOLoop with asyncio (tornado 5)
1 parent d9832e0 commit 7b45731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/threaded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def stop(self):
182182
:meth:`~threading.Thread.start` is called again.
183183
"""
184184
if self.ioloop is not None:
185-
self.ioloop.stop()
185+
self.ioloop.add_callback(self.ioloop.stop)
186186
self.join()
187187
self.close()
188188

0 commit comments

Comments
 (0)