Do not expect second notification when cqe returns error

This commit is contained in:
Vitaliy Filippov
2025-11-16 02:19:48 +03:00
parent f0112050ce
commit d235948551
+1 -1
View File
@@ -120,7 +120,7 @@ void ring_loop_t::loop()
if (mt) if (mt)
mu.lock(); mu.lock();
struct ring_data_t *d = (struct ring_data_t*)cqe->user_data; struct ring_data_t *d = (struct ring_data_t*)cqe->user_data;
if (cqe->flags & IORING_CQE_F_MORE) if ((cqe->flags & IORING_CQE_F_MORE) && cqe->res >= 0)
{ {
// There will be a second notification // There will be a second notification
if (mt) if (mt)