]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Make sure that a path is in the pending set before calling Uploader._process on it.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 22 Sep 2015 15:45:34 +0000 (16:45 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:49 +0000 (01:19 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 7b40708f364597a375adfc8a447828640a1891bc..59087ca0c5613c2beca264c0f9a96b07809cdee0 100644 (file)
@@ -248,6 +248,10 @@ class Uploader(QueueMixin):
         for child in children:
             assert isinstance(child, unicode), child
             d.addCallback(lambda ign, child=child: os.path.join(reldir_u, child))
+            def _add_pending(relpath_u):
+                self._pending.add(relpath_u)
+                return relpath_u
+            d.addCallback(_add_pending)
             d.addCallback(self._process)
             d.addErrback(log.err)