fedsender: return early if we have no destinations

This commit is contained in:
Kegan Dougal 2020-06-12 12:36:39 +01:00
parent 21bd27d003
commit 625d5e7cc7

View file

@ -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(),