diff options
author | Max Kellermann <max@musicpd.org> | 2020-10-06 18:58:42 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-10-06 18:58:54 +0200 |
commit | ca0179b2a9de39619e7fc35b2a3a92da9b41b29c (patch) | |
tree | fd40ab3b559d4e61e64953aa405385e9add5634c | |
parent | 6682cf749f67a974eba4a2904af10ba63630fc35 (diff) |
event/Loop: set the uring_initialized flag
Don't attempt to initialize the io_uring subsystem more than once.
-rw-r--r-- | src/event/Loop.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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<Uring::Manager>(*this); } catch (...) { |