From 338ea8d0d4b8068d88919522cb89d1e9f35945a2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 22 Feb 2008 14:19:46 +0000 Subject: set want_document to False earlier to prevent multi download of the file (#6540) --- 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 -- cgit v0.9.1