From ca0179b2a9de39619e7fc35b2a3a92da9b41b29c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Oct 2020 18:58:42 +0200 Subject: [PATCH] event/Loop: set the uring_initialized flag Don't attempt to initialize the io_uring subsystem more than once. --- src/event/Loop.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 7a7c77dcc..6ade45573 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -55,6 +55,7 @@ Uring::Queue * EventLoop::GetUring() noexcept { if (!uring_initialized) { + uring_initialized = true; try { uring = std::make_unique(*this); } catch (...) {