Do not expect second notification when cqe returns error
This commit is contained in:
@@ -120,7 +120,7 @@ void ring_loop_t::loop()
|
||||
if (mt)
|
||||
mu.lock();
|
||||
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
|
||||
if (mt)
|
||||
|
||||
Reference in New Issue
Block a user