Skip to content

Commit

Permalink
Merge pull request #4159 from sworleys/WQ-ErrFunc-Fix
Browse files Browse the repository at this point in the history
lib: Fix workqueue error function callback
  • Loading branch information
eqvinox authored Apr 28, 2019
2 parents 86336f6 + 095e181 commit 9f9e9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ int work_queue_run(struct thread *thread)
if (item->ran > wq->spec.max_retries) {
/* run error handler, if any */
if (wq->spec.errorfunc)
wq->spec.errorfunc(wq, item->data);
wq->spec.errorfunc(wq, item);
work_queue_item_remove(wq, item);
continue;
}
Expand Down

0 comments on commit 9f9e9ef

Please sign in to comment.