summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 25cfad7..739fecf 100644
--- a/server.c
+++ b/server.c
@@ -373,7 +373,7 @@ server_new(struct cfg *cfg, const char *name)
scfg->type = SERVER_TYPE_UNDEFINED;
scfg->name = strdup(name);
scfg->running = false;
- uring_task_init(&scfg->task, "scfg", &cfg->task, server_free);
+ uring_task_init(&scfg->task, "scfg", uring_parent(cfg), server_free);
list_init(&scfg->remotes);
list_init(&scfg->locals);
list_init(&scfg->proxys);