summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-05 16:31:47 +0000
committerErik Johnston <erik@matrix.org>2015-03-05 16:31:47 +0000
commit96fee64421a534787e9316a61ab407b43c782dc7 (patch)
treea0970fb9791e1f1065ec072a15dab6206135e7bc
parentRespect min_depth argument (diff)
downloadsynapse-96fee64421a534787e9316a61ab407b43c782dc7.tar.xz
Remove unecessary check
-rw-r--r--synapse/federation/federation_client.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 75b6a7b46a..f131941f45 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -544,19 +544,13 @@ class FederationClient(FederationBase):
                 for e_id, depth in ordered_missing[:limit - len(signed_events)]
             ]
 
-            got_a_new_event = False
-
             res = yield defer.DeferredList(deferreds, consumeErrors=True)
             for (result, val), (e_id, _) in zip(res, ordered_missing):
                 if result:
                     signed_events.append(val)
-                    got_a_new_event = True
                 else:
                     failed_to_fetch.add(e_id)
 
-            if not got_a_new_event:
-                break
-
         defer.returnValue(signed_events)
 
     def event_from_pdu_json(self, pdu_json, outlier=False):