From b6d0c796be7076cdfd30104489194f58661aa844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Wed, 17 Feb 2016 18:15:04 +0100 Subject: [PATCH] New threads where not placed in head of linked list --- src/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }