event/SocketEvent: add assert()

This commit is contained in:
Max Kellermann 2020-12-02 15:12:29 +01:00
parent ce4c69dd95
commit 7bc1c9925b

View File

@ -60,6 +60,8 @@ SocketEvent::Abandon() noexcept
bool bool
SocketEvent::Schedule(unsigned flags) noexcept SocketEvent::Schedule(unsigned flags) noexcept
{ {
assert((flags & IMPLICIT_FLAGS) == 0);
if (flags == GetScheduledFlags()) if (flags == GetScheduledFlags())
return true; return true;