summaryrefslogtreecommitdiff
path: root/src/event/MultiSocketMonitor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-18 17:57:59 +0200
committerMax Kellermann <max@musicpd.org>2017-08-18 18:18:55 +0200
commit5ac72211cde050d230b750e2e3e5e4e37860cd40 (patch)
treeb43c0442da5489eebc90a25a937f44c29f68361c /src/event/MultiSocketMonitor.cxx
parent94525d3952564455ba3e9156621e24529daa0888 (diff)
event/Loop: set thread to current thread by default
Allows eliminating lots of complexity and workarounds for bogus assertion failures.
Diffstat (limited to 'src/event/MultiSocketMonitor.cxx')
-rw-r--r--src/event/MultiSocketMonitor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/MultiSocketMonitor.cxx b/src/event/MultiSocketMonitor.cxx
index f36c9163a..bedb5f74a 100644
--- a/src/event/MultiSocketMonitor.cxx
+++ b/src/event/MultiSocketMonitor.cxx
@@ -34,7 +34,7 @@ MultiSocketMonitor::MultiSocketMonitor(EventLoop &_loop)
void
MultiSocketMonitor::Reset()
{
- assert(GetEventLoop().IsInsideOrNull());
+ assert(GetEventLoop().IsInside());
fds.clear();
IdleMonitor::Cancel();
@@ -45,7 +45,7 @@ MultiSocketMonitor::Reset()
void
MultiSocketMonitor::ClearSocketList()
{
- assert(GetEventLoop().IsInsideOrNull());
+ assert(GetEventLoop().IsInside());
fds.clear();
}