event/SocketEvent: add assert()
This commit is contained in:
parent
ce4c69dd95
commit
7bc1c9925b
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user