From: Brian Warner Date: Fri, 8 Feb 2008 00:26:59 +0000 (-0700) Subject: upload: if we lose the helper, go back to doing direct-to-server uploads instead... X-Git-Tag: allmydata-tahoe-0.8.0~109 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/status?a=commitdiff_plain;h=c7b10f449887bb6ac68145c69ff888f234862073;p=tahoe-lafs%2Ftahoe-lafs.git upload: if we lose the helper, go back to doing direct-to-server uploads instead of causing all subsequent uploads to fail --- diff --git a/src/allmydata/upload.py b/src/allmydata/upload.py index 3276f5ed..d852f6f1 100644 --- a/src/allmydata/upload.py +++ b/src/allmydata/upload.py @@ -1023,6 +1023,9 @@ class Uploader(service.MultiService): def _got_helper(self, helper): self._helper = helper + helper.notifyOnDisconnect(self._lost_helper) + def _lost_helper(self): + self._helper = None def get_helper_info(self): # return a tuple of (helper_furl_or_None, connected_bool)