lpcmanager

dfafb4c1e970
Parents 5122cd9373bd
Children 4253f906743d
Fixed bug non-closing socket client when connection is closed
--- 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]