diff options
author | Julien Valroff <julien@kirya.net> | 2012-06-26 20:47:26 +0200 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2012-06-26 20:47:26 +0200 |
commit | 2a794565f77005a753930023e41c7b696eaed6ac (patch) | |
tree | 2b96b11bed593b42be28bf456f4ae79c88e45585 /rapid/filemodify.py | |
parent | d6033c914c071aa57ac8ea4ccb03a55bd0506a3a (diff) |
Imported Upstream version 0.4.5upstream/0.4.5
Diffstat (limited to 'rapid/filemodify.py')
-rw-r--r-- | rapid/filemodify.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rapid/filemodify.py b/rapid/filemodify.py index 8e5d8a3..98921ae 100644 --- a/rapid/filemodify.py +++ b/rapid/filemodify.py @@ -72,7 +72,11 @@ class FileModify(multiprocessing.Process): while not copy_finished: logger.debug("Finished %s. Getting next task.", download_count) - rpd_file, download_count, temp_full_file_name, thumbnail_icon, thumbnail, copy_finished = self.results_pipe.recv() + data = self.results_pipe.recv() + if len(data) > 2: + rpd_file, download_count, temp_full_file_name, thumbnail_icon, thumbnail, copy_finished = data + else: + rpd_file, copy_finished = data if rpd_file is None: # this is a termination signal logger.info("Terminating file modify via pipe") |