mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibCore: Don't double-check select() in Socket's read notifier callback
This was used to work around a possible bug where select() would mark a socket readable, but another user of the same socket would read before the notifier's callback is run; let's remove this and fix any issues regarding that specific situation later when they pop up.
This commit is contained in:
parent
81a0301d4d
commit
bd4f7421cf
Notes:
sideshowbarker
2024-07-18 03:39:42 +09:00
Author: https://github.com/alimpfard
Commit: bd4f7421cf
Pull-request: https://github.com/SerenityOS/serenity/pull/10103
Reviewed-by: https://github.com/awesomekling
1 changed files with 0 additions and 2 deletions
|
@ -213,8 +213,6 @@ void Socket::ensure_read_notifier()
|
|||
VERIFY(m_connected);
|
||||
m_read_notifier = Notifier::construct(fd(), Notifier::Event::Read, this);
|
||||
m_read_notifier->on_ready_to_read = [this] {
|
||||
if (!can_read())
|
||||
return;
|
||||
if (on_ready_to_read)
|
||||
on_ready_to_read();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue