mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
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:
parent
34709cc796
commit
ecf0395c27
Notes:
github-actions[bot]
2025-08-11 14:58:21 +00:00
Author: https://github.com/awesomekling
Commit: ecf0395c27
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
8 changed files with 9 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue