Skip to content

Commit

Permalink
Async: Fix null request sent by io uring
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagghiu committed Feb 14, 2024
1 parent a296c57 commit ded58a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Libraries/Async/Async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,14 @@ void SC::AsyncEventLoop::runStepExecuteCompletions(KernelQueue& queue)
SC_LOG_MESSAGE(" Active Requests = {}\n", getTotalNumberOfActiveHandle());
bool continueProcessing = true;

AsyncRequest* request = queue.getAsyncRequest(idx);
if (request == nullptr)
{
continue;
}

AsyncRequest& async = *request;
Result result = Result(queue.validateEvent(idx, continueProcessing));
AsyncRequest& async = *queue.getAsyncRequest(idx);
if (not result)
{
reportError(queue, async, move(result));
Expand Down

0 comments on commit ded58a1

Please sign in to comment.