diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-12 21:01:59 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-12 21:01:59 +0200 |
commit | bc0a809ddb4c2b84be2897c00a7a2fcd5a0cce87 (patch) | |
tree | 2f0fa87c91c625915218912decb1efed80362378 /minecproxy/uring.c | |
parent | 32858e669a79e0a053031fd65e2007d4b89e066b (diff) |
Teach minecproxy to also read additional properties from server.properties
Diffstat (limited to 'minecproxy/uring.c')
-rw-r--r-- | minecproxy/uring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/minecproxy/uring.c b/minecproxy/uring.c index ead566d..d16abac 100644 --- a/minecproxy/uring.c +++ b/minecproxy/uring.c @@ -437,6 +437,8 @@ void uring_openat(struct uring_task *task, int dfd, const char *path, task->cb = cb; io_uring_prep_openat(sqe, dfd, path, O_RDONLY | O_CLOEXEC, 0); io_uring_sqe_set_data(sqe, task); + /* We need to do this here since path may go away */ + io_uring_submit(&cfg->uring->uring); } void uring_tbuf_recvmsg(struct uring_task *task, utask_cb_t cb) |