summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-04 10:16:51 +0000
committerErik Johnston <erik@matrix.org>2015-02-04 10:16:51 +0000
commitc0462dbf1533f285f632dcb0a74c0ef0c3e2475b (patch)
treed4383193fb52f1fd0214aad73ed315b42d07e9a4 /synapse/handlers
parentAdd doc to get_event (diff)
downloadsynapse-c0462dbf1533f285f632dcb0a74c0ef0c3e2475b.tar.xz
Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/federation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 86953bf8c8..0876589e31 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -515,6 +515,8 @@ class FederationHandler(BaseHandler):
                     "Failed to get destination from event %s", s.event_id
                 )
 
+        destinations.remove(origin)
+
         logger.debug(
             "on_send_join_request: Sending event: %s, signatures: %s",
             event.event_id,