Simplify reading data from local socket
This commit is contained in:
parent
f6e48cb3ff
commit
9d5e974c5b
@ -134,7 +134,7 @@ class QubesLocal(QubesBase):
|
||||
|
||||
client_socket.shutdown(socket.SHUT_WR)
|
||||
|
||||
return_data = b''.join(iter(lambda: client_socket.recv(BUF_SIZE), b''))
|
||||
return_data = client_socket.makefile('rb').read()
|
||||
return self._parse_qubesd_response(return_data)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user