From d0cadd17fdf8ada9cf13652d5a438c3390fe4b64 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton415@gmail.com>
Date: Mon, 24 Aug 2015 13:19:45 +0200
Subject: [PATCH] Teach uploader to process lazy tail upon stop method

---
 src/allmydata/frontends/magic_folder.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py
index 4700e691..05c4667c 100644
--- a/src/allmydata/frontends/magic_folder.py
+++ b/src/allmydata/frontends/magic_folder.py
@@ -197,6 +197,7 @@ class Uploader(QueueMixin):
             d = self._notifier.wait_until_stopped()
         else:
             d = defer.succeed(None)
+        d.addCallback(lambda ign: self._lazy_tail)
         return d
 
     def start_scanning(self):
-- 
2.45.2