From aa6aec1210a0f3d7f35071b403e97224ef1a4e71 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 8 Jul 2011 23:09:13 +0200 Subject: new useful events, allDownloadsProcessed + allDownloadsFinished --- module/network/HTTPDownload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/network/HTTPDownload.py') 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) -- cgit v1.2.3