mirror of
https://github.com/lutris/lutris
synced 2024-11-02 15:48:01 +00:00
Do a very small chunk instead
This commit is contained in:
parent
53552185a2
commit
f249666b15
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class Downloader:
|
|||
logger.info("%s returned a %s error", self.url, response.status_code)
|
||||
response.raise_for_status()
|
||||
self.full_size = int(response.headers.get("Content-Length", "").strip() or 0)
|
||||
for chunk in response.iter_content(chunk_size=8 * 1024 * 1024):
|
||||
for chunk in response.iter_content(chunk_size=1024):
|
||||
if not self.file_pointer:
|
||||
break
|
||||
if chunk:
|
||||
|
|
Loading…
Reference in a new issue