Do work_done hook before causing sync()
authorJack Miller <jack@codezen.org>
Mon, 13 Jul 2015 21:18:35 +0000 (16:18 -0500)
committerJack Miller <jack@codezen.org>
Mon, 13 Jul 2015 21:58:21 +0000 (16:58 -0500)
canto_next/fetch.py

index 5fde678..52dd9d3 100644 (file)
@@ -213,6 +213,6 @@ class CantoFetch():
         self.threads = newthreads
 
         if work_done:
+            call_hook("daemon_work_done", [])
             if self.threads == []:
                 self.shelf.sync()
-            call_hook("daemon_work_done", [])