From 2a794565f77005a753930023e41c7b696eaed6ac Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Tue, 26 Jun 2012 20:47:26 +0200 Subject: Imported Upstream version 0.4.5 --- rapid/filemodify.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rapid/filemodify.py') 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") -- cgit v1.2.3