summaryrefslogtreecommitdiffstats
path: root/tupkg/server/tupkgs
diff options
context:
space:
mode:
authorjchu <jchu>2004-12-13 03:40:48 +0000
committerjchu <jchu>2004-12-13 03:40:48 +0000
commit18769e5b020e913a1ed33129296632e633ea9ea6 (patch)
tree0fef385ecdfb177347126863dfd8c7215f48d0b9 /tupkg/server/tupkgs
parentc0b9a256aa09ca448d45c81f001857920dcc51b9 (diff)
downloadaurweb-18769e5b020e913a1ed33129296632e633ea9ea6.tar.xz
made the socket connection broken checking actually work
Diffstat (limited to 'tupkg/server/tupkgs')
-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