event/Loop: set the uring_initialized flag
Don't attempt to initialize the io_uring subsystem more than once.
This commit is contained in:
@ -55,6 +55,7 @@ Uring::Queue *
|
||||
EventLoop::GetUring() noexcept
|
||||
{
|
||||
if (!uring_initialized) {
|
||||
uring_initialized = true;
|
||||
try {
|
||||
uring = std::make_unique<Uring::Manager>(*this);
|
||||
} catch (...) {
|
||||
|
Reference in New Issue
Block a user