From: Daira Hopwood 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/simplejson/%3C?a=commitdiff_plain;h=58c809517120fa48718a0afec79cd28af7b88bc3;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 --- 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