diff options
author | jchu <jchu> | 2004-12-13 03:40:48 +0000 |
---|---|---|
committer | jchu <jchu> | 2004-12-13 03:40:48 +0000 |
commit | 18769e5b020e913a1ed33129296632e633ea9ea6 (patch) | |
tree | 0fef385ecdfb177347126863dfd8c7215f48d0b9 /tupkg/server/tupkgs | |
parent | c0b9a256aa09ca448d45c81f001857920dcc51b9 (diff) | |
download | aurweb-18769e5b020e913a1ed33129296632e633ea9ea6.tar.xz |
made the socket connection broken checking actually work
Diffstat (limited to 'tupkg/server/tupkgs')
-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 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 |