Commit 19341cdf authored by Anael Beutot's avatar Anael Beutot
Browse files

Stop running shells when closing host handler.

parent 156925e7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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.