WPS: Schedule sending of pending events after failure
There is no point leaving these pending events waiting for something new to trigger us to continue.
This commit is contained in:
parent
8c3a2f11ab
commit
d1e17fbc9c
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ static void event_retry(struct wps_event_ *e, int do_next_address)
|
||||||
wpa_printf(MSG_DEBUG, "WPS UPnP: Giving up on sending event "
|
wpa_printf(MSG_DEBUG, "WPS UPnP: Giving up on sending event "
|
||||||
"for %s", e->addr->domain_and_port);
|
"for %s", e->addr->domain_and_port);
|
||||||
event_delete(e);
|
event_delete(e);
|
||||||
|
if (!dl_list_empty(&s->event_queue))
|
||||||
|
event_send_all_later(s->sm);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dl_list_add(&s->event_queue, &e->list);
|
dl_list_add(&s->event_queue, &e->list);
|
||||||
|
|
Loading…
Reference in a new issue