Skip to content

Commit

Permalink
event/Loop: destroy the UringWake instance in DisableUring()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Mar 10, 2025
1 parent 06bc373 commit da40483
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/event/Loop.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ EventLoop::EnableUring(unsigned entries, struct io_uring_params &params)
void
EventLoop::DisableUring() noexcept
{
uring_poll.reset();
uring.reset();
#if defined(HAVE_THREADED_EVENT_LOOP) && defined(USE_EVENTFD)
uring_wake.reset();
#endif
uring_poll.reset();
}

Uring::Queue *
Expand Down

0 comments on commit da40483

Please sign in to comment.