diff options
Diffstat (limited to 'src/queue.c')
-rw-r--r-- | src/queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/queue.c b/src/queue.c index a6376a6..16edd16 100644 --- a/src/queue.c +++ b/src/queue.c @@ -58,7 +58,8 @@ int __io_uring_get_cqe(struct io_uring *ring, struct io_uring_cqe **cqe_ptr, wait_nr = 0; if (ret < 0) err = -errno; - submit -= ret; + else + submit -= ret; if (cqe) break; } while (!err); |