event/Loop: manage all SocketEvents in a linked list
Not only those which are "ready".
This commit is contained in:
@@ -69,7 +69,7 @@ SocketEvent::Schedule(unsigned flags) noexcept
|
||||
if (scheduled_flags == 0)
|
||||
success = loop.AddFD(fd.Get(), flags, *this);
|
||||
else if (flags == 0)
|
||||
success = loop.RemoveFD(fd.Get());
|
||||
success = loop.RemoveFD(fd.Get(), *this);
|
||||
else
|
||||
success = loop.ModifyFD(fd.Get(), flags, *this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user