Commit 7bc1c992 authored by Max Kellermann's avatar Max Kellermann

event/SocketEvent: add assert()

parent ce4c69dd
......@@ -60,6 +60,8 @@ SocketEvent::Abandon() noexcept
bool
SocketEvent::Schedule(unsigned flags) noexcept
{
assert((flags & IMPLICIT_FLAGS) == 0);
if (flags == GetScheduledFlags())
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment