From 4ad01c9c13f3f0837d19194463d6493ee5f1c243 Mon Sep 17 00:00:00 2001 From: yinbin Date: Tue, 21 Jan 2025 11:43:02 +0800 Subject: [PATCH] RTC-mode: fix gazellectl can't print connenct info --- src/lstack/core/lstack_protocol_stack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lstack/core/lstack_protocol_stack.c b/src/lstack/core/lstack_protocol_stack.c index fcc0ad7..cb1b2b8 100644 --- a/src/lstack/core/lstack_protocol_stack.c +++ b/src/lstack/core/lstack_protocol_stack.c @@ -704,6 +704,7 @@ int stack_setup_app_thread(void) { static PER_THREAD int first_flags = 1; static _Atomic uint32_t queue_id = 0; + struct protocol_stack *stack; if (likely(first_flags == 0)) { return 0; @@ -723,6 +724,10 @@ int stack_setup_app_thread(void) free(t_params); return -1; } + + stack = get_protocol_stack(); + stack_set_state(stack, RUNNING); + atomic_fetch_add(&g_stack_group.stack_num, 1); free(t_params); return 0; -- 2.33.0