Commit 68567017 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Return empty sting to simulate an EOF with ^]

parent eb65d59d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -42,8 +42,9 @@ class FakeTtySocket(object):
    def recv(self, size):
        data =  os.read(0, size)
        if "\x1d" in data:
            # we need to raise a IOError to make sjrpc end the connection
            raise IOError("Connexion cancelled by user")
            # return empty sting to simulate an EOF instead of raise
            # and execption
            return ""
        return data

    def send(self, data):