mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
Don't send empty transactions
This commit is contained in:
parent
cef07c4e4e
commit
c4571c9cdd
|
|
@ -322,6 +322,10 @@ func (oq *destinationQueue) nextTransaction(
|
|||
return false, fmt.Errorf("oq.db.GetNextTransactionPDUs: %w", err)
|
||||
}
|
||||
|
||||
if len(pdus) == 0 && len(pendingEDUs) == 0 {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
if txid != "" {
|
||||
// The database supplied us with a transaction ID to use
|
||||
// from a failed PDU so use that.
|
||||
|
|
|
|||
Loading…
Reference in a new issue