diff --git a/src/event/SocketEvent.cxx b/src/event/SocketEvent.cxx index a4e507043..f117a69f1 100644 --- a/src/event/SocketEvent.cxx +++ b/src/event/SocketEvent.cxx @@ -60,6 +60,8 @@ SocketEvent::Abandon() noexcept bool SocketEvent::Schedule(unsigned flags) noexcept { + assert((flags & IMPLICIT_FLAGS) == 0); + if (flags == GetScheduledFlags()) return true;