diff --git a/src/server.c b/src/server.c index dc15ae4..cef5327 100644 --- a/src/server.c +++ b/src/server.c @@ -343,8 +343,7 @@ static inline thread_ctx_t* create_thread_ctx(struct gengetopt_args_info* params thread_ctx->next = s_last_thread; if (s_last_thread) s_last_thread->prev = thread_ctx; - else - s_last_thread = thread_ctx; + s_last_thread = thread_ctx; return thread_ctx; }