diff options
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -58,8 +58,8 @@ server_refdump(struct server *server) uring_task_refdump(&local->task); list_for_each_entry(proxy, &server->proxys, list) proxy_refdump(proxy); - if (server->idle) - idle_refdump(server->idle); + idle_refdump(server->idle); + rcon_refdump(server->rcon); } static void @@ -642,7 +642,7 @@ server_add_local(struct cfg *cfg, struct server *server, struct saddr *saddr) debug(DBG_SRV, "adding local: %s", saddr->addrstr); local->local = *saddr; - uring_task_init(&local->task, "local", &server->task, server_local_free); + uring_task_init(cfg, &local->task, "local", &server->task, server_local_free); list_add(&local->list, &server->locals); xfree(saddr); return true; @@ -804,9 +804,9 @@ server_new(struct cfg *cfg, const char *name) server->name = xstrdup(name); server->stop_method = SERVER_STOP_METHOD_UNDEFINED; server->start_method = SERVER_START_METHOD_UNDEFINED; - uring_task_init(&server->task, "server", uring_parent(cfg), server_free); + uring_task_init(cfg, &server->task, "server", uring_parent(cfg), server_free); uring_task_set_buf(&server->task, &server->tbuf); - uring_task_init(&server->exec_task, "exec", &server->task, server_exec_free); + uring_task_init(cfg, &server->exec_task, "exec", &server->task, server_exec_free); list_init(&server->remotes); list_init(&server->locals); list_init(&server->proxys); |