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:
1 parent
26df5e9aa4
commit
0ddda7ca56
2 files changed
+2
-2
No files matched your search
@@ -1189,7 +1189,7 @@ static status_t process_response(private_task_manager_t *this,
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
if (this->initiating.retransmitted)
|
||||
if (this->initiating.retransmitted > 1)
|
||||
{
|
||||
packet_t *packet = NULL;
|
||||
array_get(this->initiating.packets, 0, &packet);
|
||||
|
||||
@@ -709,7 +709,7 @@ static status_t process_response(private_task_manager_t *this,
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
if (this->initiating.retransmitted)
|
||||
if (this->initiating.retransmitted > 1)
|
||||
{
|
||||
packet_t *packet = NULL;
|
||||
array_get(this->initiating.packets, 0, &packet);
|
||||
|
||||
Reference in new issue
Block a user