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