LibCore: Stop parenting notifiers

There's no need to participate in the ancient EventReceiver parent/child
ownership scheme here. Notifiers are already owned by RefPtrs anyway.
This commit is contained in:
Andreas Kling 2025-08-10 16:00:40 +02:00 committed by Andreas Kling
commit ecf0395c27
Notes: github-actions[bot] 2025-08-11 14:58:21 +00:00
8 changed files with 9 additions and 10 deletions

View file

@ -60,7 +60,7 @@ ErrorOr<void> TCPServer::listen(IPv4Address const& address, u16 port, AllowAddre
TRY(Core::System::listen(m_fd, 5));
m_listening = true;
m_notifier = Notifier::construct(m_fd, Notifier::Type::Read, this);
m_notifier = Notifier::construct(m_fd, Notifier::Type::Read);
m_notifier->on_activation = [this] {
if (on_ready_to_accept)
on_ready_to_accept();