# HG changeset patch # User Laurent Bessard # Date 1361384269 -3600 # Node ID c5b5509bd224245147324981b73a145a6794ffd3 # Parent 04205032298ba3ba5d47b79cca2b005aff485d50 Fixed bug non-closing socket client when connection is closed diff -r 04205032298b -r c5b5509bd224 LPCManager.py --- a/LPCManager.py Wed Feb 20 19:00:10 2013 +0100 +++ b/LPCManager.py Wed Feb 20 19:17:49 2013 +0100 @@ -1809,7 +1809,10 @@ def readline(self): idx = self.Buffer.find("\n") while idx == -1: - self.Buffer += self.socket.recv(2048) + text = self.socket.recv(2048) + if text == "": + break + self.Buffer += text idx = self.Buffer.find("\n") if idx != -1: line = self.Buffer[:idx+1]