event/IdleEvent: make a special case of DeferEvent

This commit is contained in:
Max Kellermann
2020-12-01 17:04:14 +01:00
parent 990f2dc1cf
commit c58aaf545f
7 changed files with 66 additions and 70 deletions

View File

@@ -97,7 +97,7 @@ FullyBufferedSocket::OnSocketReady(unsigned flags) noexcept
{
if (flags & SocketEvent::WRITE) {
assert(!output.empty());
assert(!idle_event.IsActive());
assert(!idle_event.IsPending());
if (!Flush())
return;