mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-13 17:49:56 +00:00
lib: Fix workqueue error function callback
After exceeding the max retry number for a thread, we were passing the data rather than the work_queue_item struct. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
3c7940063b
commit
095e181928
@ -280,7 +280,7 @@ int work_queue_run(struct thread *thread)
|
|||||||
if (item->ran > wq->spec.max_retries) {
|
if (item->ran > wq->spec.max_retries) {
|
||||||
/* run error handler, if any */
|
/* run error handler, if any */
|
||||||
if (wq->spec.errorfunc)
|
if (wq->spec.errorfunc)
|
||||||
wq->spec.errorfunc(wq, item->data);
|
wq->spec.errorfunc(wq, item);
|
||||||
work_queue_item_remove(wq, item);
|
work_queue_item_remove(wq, item);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user