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:
parent
5dee1203af
commit
3547938638
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue