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/?a=commitdiff_plain;h=49efa22c82701a08d613670e27a6303a673065fc;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