engine: do not check 'sp' event if is not running
@@ -273,10 +273,12 @@ static FLB_INLINE int flb_engine_handle_event(flb_pipefd_t fd, int mask,
#endif
#ifdef FLB_HAVE_STREAM_PROCESSOR
+ if (config->stream_processor_ctx) {
ret = flb_sp_fd_event(fd, config->stream_processor_ctx);
if (ret != -1) {
return ret;
}
+ }
#endif
}
