Don't send empty transactions

This commit is contained in:
Neil Alexander 2020-07-01 10:19:29 +01:00
parent cef07c4e4e
commit c4571c9cdd

View file

@ -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.