tentative fix 550 - gPodder 3.10.5 stops responding when updating and downloading

fix a leftover python2 bytes vs str comparison causing the download loop to never end
See #550
This commit is contained in:
Eric Le Lay 2018-12-11 09:59:14 +01:00
parent 5dee1203af
commit 3547938638
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class DownloadURLOpener(urllib.request.FancyURLopener):
block = fp.read(bs)
else:
block = fp.read(min(size - read, bs))
if block == "":
if len(block) == 0:
break
read += len(block)
tfp.write(block)