diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-12-16 15:30:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 15:30:37 +0100 |
| commit | 7b78f6c87f8e1e8cb6804ef7e8ea7dac43836593 (patch) | |
| tree | c24f68d004bfa7596864aa58302eb43da80ac2af /lib/workqueue.c | |
| parent | 960ad09f93053bfb5f0b6e5055ab044fa4433c72 (diff) | |
| parent | 5a59e9b21fa93f706f7b5887820449fffab8e375 (diff) | |
Merge pull request #12522 from donaldsharp/some_various_stuff
Diffstat (limited to 'lib/workqueue.c')
| -rw-r--r-- | lib/workqueue.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c index c703de90b3..a5338ba78b 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -272,9 +272,6 @@ void work_queue_run(struct thread *thread) /* dont run items which are past their allowed retries */ if (item->ran > wq->spec.max_retries) { - /* run error handler, if any */ - if (wq->spec.errorfunc) - wq->spec.errorfunc(wq, item); work_queue_item_remove(wq, item); continue; } @@ -317,10 +314,6 @@ void work_queue_run(struct thread *thread) case WQ_RETRY_NOW: /* a RETRY_NOW that gets here has exceeded max_tries, same as * ERROR */ - case WQ_ERROR: { - if (wq->spec.errorfunc) - wq->spec.errorfunc(wq, item); - } /* fallthru */ case WQ_SUCCESS: default: { |
