summaryrefslogtreecommitdiff
path: root/tupkg
diff options
context:
space:
mode:
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 1c61707..f3f31ea 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