task-manager: Only trigger retransmit cleared alert if there was at least one retransmit
The counter is already increased when sending the original message.
Fixes: bd71ba0ffb ("task-manager: Add retransmit cleared alert")
This commit is contained in:
@@ -1189,7 +1189,7 @@ static status_t process_response(private_task_manager_t *this,
|
|||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
if (this->initiating.retransmitted)
|
if (this->initiating.retransmitted > 1)
|
||||||
{
|
{
|
||||||
packet_t *packet = NULL;
|
packet_t *packet = NULL;
|
||||||
array_get(this->initiating.packets, 0, &packet);
|
array_get(this->initiating.packets, 0, &packet);
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ static status_t process_response(private_task_manager_t *this,
|
|||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
if (this->initiating.retransmitted)
|
if (this->initiating.retransmitted > 1)
|
||||||
{
|
{
|
||||||
packet_t *packet = NULL;
|
packet_t *packet = NULL;
|
||||||
array_get(this->initiating.packets, 0, &packet);
|
array_get(this->initiating.packets, 0, &packet);
|
||||||
|
|||||||
Reference in New Issue
Block a user