summaryrefslogtreecommitdiffstats
path: root/tupkg
diff options
context:
space:
mode:
authorjchu <jchu>2004-12-13 04:40:48 +0100
committerjchu <jchu>2004-12-13 04:40:48 +0100
commit18769e5b020e913a1ed33129296632e633ea9ea6 (patch)
tree0fef385ecdfb177347126863dfd8c7215f48d0b9 /tupkg
parentc0b9a256aa09ca448d45c81f001857920dcc51b9 (diff)
downloadaur-18769e5b020e913a1ed33129296632e633ea9ea6.tar.gz
aur-18769e5b020e913a1ed33129296632e633ea9ea6.tar.xz
made the socket connection broken checking actually work
Diffstat (limited to 'tupkg')
-rwxr-xr-xtupkg/server/tupkgs2
1 files changed, 1 insertions, 1 deletions
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