aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/IdleMonitor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-05 01:40:50 +0100
committerMax Kellermann <max@duempel.org>2014-01-05 02:14:31 +0100
commit626895577840f25c1b0b1f3208310a82c4202d58 (patch)
tree71329824b174eb19564604c8c9e5bc899b937425 /src/event/IdleMonitor.cxx
parent4ddfc6e9a2930ede249556548bae370b68af0fbc (diff)
downloadmpd-626895577840f25c1b0b1f3208310a82c4202d58.tar.gz
mpd-626895577840f25c1b0b1f3208310a82c4202d58.tar.xz
mpd-626895577840f25c1b0b1f3208310a82c4202d58.zip
event/Loop: add thread-safety assertions
Diffstat (limited to 'src/event/IdleMonitor.cxx')
-rw-r--r--src/event/IdleMonitor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/IdleMonitor.cxx b/src/event/IdleMonitor.cxx
index 6e500aa7b..e791559a1 100644
--- a/src/event/IdleMonitor.cxx
+++ b/src/event/IdleMonitor.cxx
@@ -26,7 +26,7 @@
void
IdleMonitor::Cancel()
{
- assert(loop.IsInside());
+ assert(loop.IsInsideOrNull());
if (!IsActive())
return;