From 877ddf8901351143e6231c03fd7331965db3d18d Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 17 Apr 2015 19:58:08 +0100 Subject: [PATCH] Teach uploade deque append to not block (potentially?) --- src/allmydata/frontends/drop_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index 47ab0301..4d51d6b6 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -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: -- 2.45.2