Commit bb2a5b6e authored by Anael Beutot's avatar Anael Beutot
Browse files

Updated to new sjrpc API

Tunnel endpoints are now automaticaly closed by default.
parent 6f0de0ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ class RemoteShell(object):
        self.master, self.slave = pty.openpty()
        self.endpoint = FakePtySocket(self.master)
        self.proto = conn.create_tunnel(endpoint=self.endpoint,
                                        close_endpoint_on_shutdown=False,
                                        on_shutdown=self.on_tunnel_shutdown)
        self.conn = conn
        self.child_watcher = None
+0 −1
Original line number Diff line number Diff line
@@ -369,7 +369,6 @@ class Handler(HostHandler):

        def on_shutdown(tun):
            """Method of Tunnel protocol close callback."""
            tun.cb_default_on_shutdown()
            vm.close_console()

        # connect as tunnel endpoint