Commit 85ec0b8b authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed rshell_wait

parent 52d673e6
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -986,22 +986,6 @@ class CliHandler(RegisteredCCHandler):
            raise ValueError('Label does not refers on a rshell')
        client.rshell_resize(stun.label, row, col, xpixel, ypixel)

    @listed
    def rshell_wait(self, label):
        """ Wait for a remote shell termination.
        """
        ttype, client, ctun, stun = self.client.get_tunnel(label)
        if ttype != 'rshell':
            raise ValueError('Label does not refers on a rshell')
        try:
            rcode = client.rshell_wait(stun.label)
        except Exception as err:
            rcode = -1
            self.logger.warning('Unexpected exit of tunnel: %s', err)
        self.client.unregister_tunnel(ctun.label)
        ctun.close()
        stun.close()
        return rcode

    #
    # Port forwarding: