From 4e24a2e6a9bc98a51e6f894f2eec876054517182 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Thu, 25 Feb 2021 13:34:30 -0600 Subject: [PATCH] output_thread: initialize coroutine threaded with the API (#3055) Signed-off-by: Eduardo Silva --- src/flb_output_thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flb_output_thread.c b/src/flb_output_thread.c index 4c89e12c896..52c8346dffc 100644 --- a/src/flb_output_thread.c +++ b/src/flb_output_thread.c @@ -186,6 +186,8 @@ static void output_thread(void *data) ins = th_ins->ins; thread_id = th_ins->th->id; + flb_coro_thread_init(); + /* * Expose the event loop to the I/O interfaces: since we are in a separate * thread, the upstream connection interfaces need access to the event