Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-02-22 14:19:46 (GMT)
committer Reinier Heeres <rwh@rwh.(none)>2008-02-25 21:44:39 (GMT)
commit338ea8d0d4b8068d88919522cb89d1e9f35945a2 (patch)
tree5c9ae6abccb041917a2245432ccda9594f550b3c
parent6c91bb7366c990903279401860a2b25ec63d7ea8 (diff)
set want_document to False earlier to prevent multi download of the file (#6540)
-rw-r--r--readactivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/readactivity.py b/readactivity.py
index e2101de..6196f1b 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -272,8 +272,6 @@ class ReadActivity(activity.Activity):
getter.connect("progress", self._download_progress_cb, tube_id)
getter.connect("error", self._download_error_cb, tube_id)
_logger.debug("Starting download to %s...", self._jobject.file_path)
- # Avoid trying to download the document multiple times at once
- self._want_document = False
getter.start(self._jobject.file_path)
return False
@@ -294,6 +292,8 @@ class ReadActivity(activity.Activity):
e)
return False
+ # Avoid trying to download the document multiple times at once
+ self._want_document = False
gobject.idle_add(self._download_document, tube_id)
return False