Skip to content

Commit

Permalink
fix: update thread initialization logic to skip auth server threads i…
Browse files Browse the repository at this point in the history
…n local auth mode

Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Jan 7, 2025
1 parent 445a1a9 commit 8c2f9c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gateway.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ threads_init(s_config *config)
create_detached_thread(&tid_ping, (void *)thread_ping, NULL, "ping");

// Auth server dependent threads
if (!config->auth_servers) {
debug(LOG_INFO, "No auth server available, not starting auth-dependent threads");
if (is_local_auth_mode()) {
debug(LOG_INFO, "Auth mode is local, no need to start auth server related threads");
return;
}

Expand Down

0 comments on commit 8c2f9c8

Please sign in to comment.