Fix a bug where more transactions were simulated than specified

This commit is contained in:
2022-01-25 15:31:17 +01:00
parent 5c0b08246e
commit 55ad6639f2

View File

@@ -277,6 +277,12 @@ void TrafficGenerator::transitionToNextState()
void TrafficGenerator::prepareNextPayload()
{
if (transactionsSent >= maxTransactions)
{
finished = true;
return;
}
if (startEvent && transactionsSent == 0)
wait(*startEvent);