Fix return value for async restart_kernel

gen.Return shouldn't be passed the Future, the future should be awaited
Min RK 7 years ago
parent ca7b8dd163
commit e908edf171

@ -342,7 +342,8 @@ class MappingKernelManager(MultiKernelManager):
channel.on_recv(on_reply)
loop = IOLoop.current()
timeout = loop.add_timeout(loop.time() + self.kernel_info_timeout, on_timeout)
raise gen.Return(future)
# wait for restart to complete
yield future
def notify_connect(self, kernel_id):
"""Notice a new connection to a kernel"""

Loading…
Cancel
Save