From: Daira Hopwood <daira@jacaranda.org>
Date: Wed, 23 Sep 2015 14:38:04 +0000 (+0100)
Subject: Make sure that the 'processed' hook is run for calls to _process from scan.
X-Git-Url: https://git.rkrishnan.org/%5B/frontends/%22news.html/something?a=commitdiff_plain;h=847b07a998744ba29d323839ac1aa24647103cb2;p=tahoe-lafs%2Ftahoe-lafs.git

Make sure that the 'processed' hook is run for calls to _process from scan.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---

diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py
index d0401ae9..1ca638e8 100644
--- a/src/allmydata/frontends/magic_folder.py
+++ b/src/allmydata/frontends/magic_folder.py
@@ -256,7 +256,9 @@ class Uploader(QueueMixin):
                 self._pending.add(relpath_u)
                 return relpath_u
             d.addCallback(_add_pending)
+            # This call to _process doesn't go through the deque, and probably should.
             d.addCallback(self._process)
+            d.addBoth(self._call_hook, 'processed')
             d.addErrback(log.err)
 
         return d