From c7b10f449887bb6ac68145c69ff888f234862073 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 7 Feb 2008 17:26:59 -0700 Subject: [PATCH] upload: if we lose the helper, go back to doing direct-to-server uploads instead of causing all subsequent uploads to fail --- src/allmydata/upload.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.45.2