summaryrefslogtreecommitdiff
path: root/src/event/DeferredMonitor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-07 19:38:10 +0200
committerMax Kellermann <max@duempel.org>2013-08-07 19:38:10 +0200
commit977004c3508a366499ff80ff87ac3a84b4fdf9eb (patch)
tree8aa2b14135a023454da1ea018d553471a8304a53 /src/event/DeferredMonitor.cxx
parentfdc7d13ad16184c20d2bd37063cbb4d9957a4461 (diff)
event/DeferredMonitor: use EventLoop::AddIdle()
Diffstat (limited to 'src/event/DeferredMonitor.cxx')
-rw-r--r--src/event/DeferredMonitor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/DeferredMonitor.cxx b/src/event/DeferredMonitor.cxx
index 10aa0d757..e4242414c 100644
--- a/src/event/DeferredMonitor.cxx
+++ b/src/event/DeferredMonitor.cxx
@@ -32,7 +32,7 @@ DeferredMonitor::Cancel()
void
DeferredMonitor::Schedule()
{
- const unsigned id = g_idle_add(Callback, this);
+ const unsigned id = loop.AddIdle(Callback, this);
const auto old_id = source_id.exchange(id);
if (old_id != 0)
g_source_remove(old_id);