diff options
Diffstat (limited to 'tupkg')
-rwxr-xr-x | tupkg/server/tupkgs | 2 |
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 |