Break if no txn is sent

This commit is contained in:
Kegan Dougal 2020-07-07 14:30:57 +01:00
parent 51a7f4bb7c
commit 9035e169b7

View file

@ -250,6 +250,8 @@ func (oq *destinationQueue) backgroundSend() {
oq.statistics.Success() oq.statistics.Success()
// Clean up the in-memory buffers. // Clean up the in-memory buffers.
oq.cleanPendingEDUs() oq.cleanPendingEDUs()
} else {
break
} }
} }