Skip to content

Commit

Permalink
Merge pull request #63 from cpranav/delete-terminal-fix
Browse files Browse the repository at this point in the history
Fix for #62
  • Loading branch information
takluyver committed Mar 18, 2019
2 parents ffb2980 + e19fc5f commit acef5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminado/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def terminate(self, force=False):
signal.SIGTERM]

loop = IOLoop.current()
sleep = lambda : gen.Task(loop.add_timeout, loop.time() + self.ptyproc.delayafterterminate)
sleep = lambda : gen.sleep(self.ptyproc.delayafterterminate)

if not self.ptyproc.isalive():
raise gen.Return(True)
Expand Down

0 comments on commit acef5ae

Please sign in to comment.