summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPDownload.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/HTTPDownload.py')
-rw-r--r--module/network/HTTPDownload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py
index 0f06dcd6f..781929b9d 100644
--- a/module/network/HTTPDownload.py
+++ b/module/network/HTTPDownload.py
@@ -234,7 +234,7 @@ class HTTPDownload():
remove(self.info.getChunkName(chunk.id))
chunk.fp.flush()
- fsync(chunk.fp) #make sure everything was written to disk
+ fsync(chunk.fp.fileno()) #make sure everything was written to disk
chunk.fp.close() #needs to be closed, or merging chunks will fail
if failed: raise BadHeader(failed)