summaryrefslogtreecommitdiffstats
path: root/tupkg/server
diff options
context:
space:
mode:
Diffstat (limited to 'tupkg/server')
-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