summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-12-01 20:05:54 +0100
committerMax Kellermann <max@musicpd.org>2020-12-01 20:05:54 +0100
commit5f2797e7cc3504b2c3fd85e8c33e30a4923f0b49 (patch)
tree03c2ba01ee3d2e40c06df5518fef4d7913b2989a
parente286702f4c6dc491a56085a31ac1fda1fee9f6a6 (diff)
event/Loop: add more assertions to dtor
-rw-r--r--src/event/Loop.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx
index e67b811fe..64b237543 100644
--- a/src/event/Loop.cxx
+++ b/src/event/Loop.cxx
@@ -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());
}