From: Brian Warner Date: Sat, 15 Nov 2008 04:11:44 +0000 (-0700) Subject: limiter.py: fix stack blowout by inserting an eventual-send between _done and maybe_s... X-Git-Tag: allmydata-tahoe-1.3.0~422 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/...?a=commitdiff_plain;h=fc7cd23bd190635191334c6e096e12c38f5bea42;p=tahoe-lafs%2Ftahoe-lafs.git limiter.py: fix stack blowout by inserting an eventual-send between _done and maybe_start_task. This was causing failures during a 'tahoe manifest' of a large set of directories --- diff --git a/src/allmydata/util/limiter.py b/src/allmydata/util/limiter.py index d3222a7b..241c1eb8 100644 --- a/src/allmydata/util/limiter.py +++ b/src/allmydata/util/limiter.py @@ -37,4 +37,4 @@ class ConcurrencyLimiter: def _done(self, res, done_d): self.active -= 1 eventually(done_d.callback, res) - self.maybe_start_task() + eventually(self.maybe_start_task)