Skip to content

Commit 866d00c

Browse files
stokscedsiper
authored andcommitted
input_thread: exit on failures to initialize threaded plugin instances
Signed-off-by: Bradley Laney <[email protected]>
1 parent 936f40e commit 866d00c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flb_input_thread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,11 @@ int flb_input_thread_instance_init(struct flb_config *config, struct flb_input_i
620620
ret = input_thread_instance_get_status(ins);
621621
if (ret == -1) {
622622
flb_plg_error(ins, "unexpected error loading plugin instance");
623+
return -1;
623624
}
624625
else if (ret == FLB_FALSE) {
625626
flb_plg_error(ins, "could not initialize threaded plugin instance");
627+
return -1;
626628
}
627629
else if (ret == FLB_TRUE) {
628630
flb_plg_info(ins, "thread instance initialized");

0 commit comments

Comments
 (0)