From 9035e169b7844215eafe2e32359eed3f908adeb8 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 7 Jul 2020 14:30:57 +0100 Subject: [PATCH] Break if no txn is sent --- federationsender/queue/destinationqueue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/federationsender/queue/destinationqueue.go b/federationsender/queue/destinationqueue.go index ab779a5d3..accd39f4d 100644 --- a/federationsender/queue/destinationqueue.go +++ b/federationsender/queue/destinationqueue.go @@ -250,6 +250,8 @@ func (oq *destinationQueue) backgroundSend() { oq.statistics.Success() // Clean up the in-memory buffers. oq.cleanPendingEDUs() + } else { + break } }