summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-07-09 11:04:40 +0100
committerGitHub <noreply@github.com>2024-07-09 10:04:40 +0000
commit028b103ae0d2ce82ea240b06e890a521ec2d6e6c (patch)
treedcce2319b08d65712d00a11a496c0ceb48010a10 /synapse/federation
parentFix `/versions` requests (#17410) (diff)
downloadsynapse-028b103ae0d2ce82ea240b06e890a521ec2d6e6c.tar.xz
Fix exception when failing to talk to remote server (#17411)
Broke in #17381
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/sender/per_destination_queue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py
index b435588da0..d097e65ea7 100644
--- a/synapse/federation/sender/per_destination_queue.py
+++ b/synapse/federation/sender/per_destination_queue.py
@@ -322,6 +322,7 @@ class PerDestinationQueue:
         )
 
     async def _transaction_transmission_loop(self) -> None:
+        pending_pdus: List[EventBase] = []
         try:
             self.transmission_loop_running = True
 
@@ -341,7 +342,7 @@ class PerDestinationQueue:
                 self._new_data_to_send = False
 
                 async with _TransactionQueueManager(self) as (
-                    pending_pdus,
+                    pending_pdus,  # noqa: F811
                     pending_edus,
                 ):
                     if not pending_pdus and not pending_edus: