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