mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-21 03:15:16 +00:00
upload: if we lose the helper, go back to doing direct-to-server uploads instead of causing all subsequent uploads to fail
This commit is contained in:
parent
b2d31f0a8a
commit
c7b10f4498
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user