event/Loop: add more assertions to dtor

This commit is contained in:
Max Kellermann 2020-12-01 20:05:54 +01:00
parent e286702f4c
commit 5f2797e7cc

View File

@ -67,7 +67,11 @@ EventLoop::EventLoop(
EventLoop::~EventLoop() noexcept
{
assert(timers.empty());
assert(defer.empty());
assert(idle.empty());
#ifdef HAVE_THREADED_EVENT_LOOP
assert(inject.empty());
#endif
assert(sockets.empty());
assert(ready_sockets.empty());
}