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:
Brian Warner 2008-02-07 17:26:59 -07:00
parent b2d31f0a8a
commit c7b10f4498

View File

@ -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)