Cancel pending retransmits when flushing active task queue
This commit is contained in:
parent
4ce92ef350
commit
17949695bf
|
@ -227,6 +227,10 @@ METHOD(task_manager_t, flush_queue, void,
|
|||
{
|
||||
case TASK_QUEUE_ACTIVE:
|
||||
list = this->active_tasks;
|
||||
/* cancel pending retransmits */
|
||||
this->initiating.type = EXCHANGE_TYPE_UNDEFINED;
|
||||
DESTROY_IF(this->initiating.packet);
|
||||
this->initiating.packet = NULL;
|
||||
break;
|
||||
case TASK_QUEUE_PASSIVE:
|
||||
list = this->passive_tasks;
|
||||
|
|
Loading…
Reference in New Issue