summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-04-09 16:02:48 +0100
committerErik Johnston <erik@matrix.org>2018-04-09 16:02:48 +0100
commit6e025a97b4639e5869ecf7a9762aa559bfdf85f6 (patch)
tree8cbdfbb39802aab3143062215fbe29a86e06c2f7
parentSend federation events concurrently (diff)
downloadsynapse-6e025a97b4639e5869ecf7a9762aa559bfdf85f6.tar.xz
Handle all events in a room correctly
-rw-r--r--synapse/federation/transaction_queue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index 43daf673c0..d8e5c08a3c 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -213,9 +213,10 @@ class TransactionQueue(object):
 
                     self._send_pdu(event, destinations)
 
+                @defer.inlineCallbacks
                 def handle_room_events(events):
                     for event in events:
-                        return handle_event(event)
+                        yield handle_event(event)
 
                 events_by_room = {}
                 for event in events: