summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-24 16:12:47 +0000
committerGitHub <noreply@github.com>2021-03-24 16:12:47 +0000
commitc602ba833627139103830f76803fc37b4adce37a (patch)
tree3774236842250e1bca862839e3b0d437e50ae71f /synapse
parentFix typo in changelog. (diff)
downloadsynapse-c602ba833627139103830f76803fc37b4adce37a.tar.xz
Fixed undefined variable error in catchup (#9664)
Broke in #9640

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/sender/per_destination_queue.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py
index af85fe0a1e..89df9a619b 100644
--- a/synapse/federation/sender/per_destination_queue.py
+++ b/synapse/federation/sender/per_destination_queue.py
@@ -480,6 +480,8 @@ class PerDestinationQueue:
                     # the other sending servers are up).
                     if new_pdus:
                         room_catchup_pdus = new_pdus
+                    else:
+                        room_catchup_pdus = [pdu]
 
                 logger.info(
                     "Catching up rooms to %s: %r", self._destination, pdu.room_id