input: do not invoke pause callback if no plugin context is set
@@ -764,8 +764,8 @@ int flb_input_pause_all(struct flb_config *config)
mk_list_foreach(head, &config->inputs) {
in = mk_list_entry(head, struct flb_input_instance, _head);
if (flb_input_buf_paused(in) == FLB_FALSE) {
+ if (in->p->cb_pause && in->context) {
flb_info("[input] pausing %s", flb_input_name(in));
- if (in->p->cb_pause) {
in->p->cb_pause(in->context, in->config);
}
paused++;
