Skip to content

Commit

Permalink
logreader: retry on main_loop_io_worker_job_submit() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi committed Oct 20, 2024
1 parent 592bd98 commit b660f7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/logreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ log_reader_io_handle_in(gpointer s)
log_reader_disable_watches(self);
if ((self->options->flags & LR_THREADED))
{
main_loop_io_worker_job_submit(&self->io_job, NULL);
if (!main_loop_io_worker_job_submit(&self->io_job, NULL))
{
log_reader_set_immediate_check(self);
log_reader_update_watches(self);
}
}
else
{
Expand Down

0 comments on commit b660f7b

Please sign in to comment.