diff options
author | Max Kellermann <max@duempel.org> | 2013-08-07 19:38:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-07 19:38:10 +0200 |
commit | 977004c3508a366499ff80ff87ac3a84b4fdf9eb (patch) | |
tree | 8aa2b14135a023454da1ea018d553471a8304a53 /src/event/DeferredMonitor.cxx | |
parent | fdc7d13ad16184c20d2bd37063cbb4d9957a4461 (diff) |
event/DeferredMonitor: use EventLoop::AddIdle()
Diffstat (limited to 'src/event/DeferredMonitor.cxx')
-rw-r--r-- | src/event/DeferredMonitor.cxx | 2 |
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); |