From 625d5e7cc74f9275e85bcc1d37a89fe712838257 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 12 Jun 2020 12:36:39 +0100 Subject: [PATCH] fedsender: return early if we have no destinations --- federationsender/queue/queue.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/federationsender/queue/queue.go b/federationsender/queue/queue.go index 5b8fc3c56..240343559 100644 --- a/federationsender/queue/queue.go +++ b/federationsender/queue/queue.go @@ -107,6 +107,9 @@ func (oqs *OutgoingQueues) SendEvent( // Remove our own server from the list of destinations. destinations = filterAndDedupeDests(oqs.origin, destinations) + if len(destinations) == 0 { + return nil + } log.WithFields(log.Fields{ "destinations": destinations, "event": ev.EventID(),