mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
made the socket connection broken checking actually work
This commit is contained in:
parent
c0b9a256aa
commit
18769e5b02
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue