engine: on shutdown mark engine running as false
@@ -575,6 +575,8 @@ int flb_engine_start(struct flb_config *config)
int flb_engine_shutdown(struct flb_config *config)
{
+ config->is_running = FLB_FALSE;
+
#ifdef FLB_HAVE_BUFFERING
if (config->buffer_ctx) {
flb_buffer_stop(config->buffer_ctx);
