summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-08 23:09:13 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-08 23:09:13 +0200
commitaa6aec1210a0f3d7f35071b403e97224ef1a4e71 (patch)
tree0d4ff9b506a910e15d912622f55aa6bb57e76718 /module/network
parentcalculate queue count, db improvements (diff)
downloadpyload-aa6aec1210a0f3d7f35071b403e97224ef1a4e71.tar.xz
new useful events, allDownloadsProcessed + allDownloadsFinished
Diffstat (limited to 'module/network')
-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)