mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
mutable: if there are no servers available, return an error, rather than hanging forever
This commit is contained in:
parent
7dc8ff0263
commit
91c7e0f689
@ -461,6 +461,12 @@ class ServermapUpdater:
|
||||
self._queries_outstanding.add(peerid)
|
||||
self._do_query(ss, peerid, self._storage_index, self._read_size)
|
||||
|
||||
if not peerlist:
|
||||
# there is nobody to ask, so we need to short-circuit the state
|
||||
# machine.
|
||||
d = defer.maybeDeferred(self._check_for_done, None)
|
||||
d.addErrback(self._fatal_error)
|
||||
|
||||
# control flow beyond this point: state machine. Receiving responses
|
||||
# from queries is the input. We might send out more queries, or we
|
||||
# might produce a result.
|
||||
|
Loading…
x
Reference in New Issue
Block a user