Skip to content
Snippets Groups Projects
Commit 19341cdf authored by Anael Beutot's avatar Anael Beutot
Browse files

Stop running shells when closing host handler.

parent 156925e7
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,14 @@ class Handler(BasePlugin):
# running shells
self.shells = dict()
def stop(self):
# kill all currently running shells
for shell in self.shells.values():
shell.kill()
shell.close_cb()
self.shells.clear()
BasePlugin.stop(self)
def execute_command(self, command):
"""Execute an arbitrary shell command on the host.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment