Do work_done hook before causing sync()
[canto-next.git] / 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", [])