]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Teach uploade deque append to not block (potentially?)
authorDavid Stainton <dstainton415@gmail.com>
Fri, 17 Apr 2015 18:58:08 +0000 (19:58 +0100)
committerDavid Stainton <dstainton415@gmail.com>
Fri, 17 Apr 2015 18:58:08 +0000 (19:58 +0100)
src/allmydata/frontends/drop_upload.py

index 47ab03011296bb86b8a6b541112a4683b19e00ed..4d51d6b660f6afd95f494f1445e06889d1816c1d 100644 (file)
@@ -2,7 +2,7 @@
 import sys, os
 from collections import deque
 
-from twisted.internet import defer
+from twisted.internet import defer, reactor
 from twisted.python.failure import Failure
 from twisted.python.filepath import FilePath
 from twisted.application import service
@@ -136,7 +136,7 @@ class DropUploader(service.MultiService):
         self._upload_deque.append(path)
         self._pending.add(path)
         if self.is_upload_ready:
-            self._process_deque()
+            reactor.callLater(0, self._process_deque)
 
     def _process_deque(self):
         while True: