From 18769e5b020e913a1ed33129296632e633ea9ea6 Mon Sep 17 00:00:00 2001 From: jchu Date: Mon, 13 Dec 2004 03:40:48 +0000 Subject: made the socket connection broken checking actually work --- tupkg/server/tupkgs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tupkg') diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs index 1c617077..f3f31ea6 100755 --- a/tupkg/server/tupkgs +++ b/tupkg/server/tupkgs @@ -82,7 +82,7 @@ class ClientSocket(threading.Thread): totalread = "" while len(totalread) < size: read = self.socket.recv(size-len(totalread)) - if read == 0: + if len(read) == 0: raise RuntimeError, "socket connection broken" totalread += read return totalread -- cgit v1.2.3-24-g4f1b