aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifyUpdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/InotifyUpdate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx
index 0fe22385b..7ed0e84ba 100644
--- a/src/InotifyUpdate.cxx
+++ b/src/InotifyUpdate.cxx
@@ -318,7 +318,8 @@ mpd_inotify_init(unsigned max_depth)
return;
}
- inotify_source = InotifySource::Create(mpd_inotify_callback, nullptr,
+ inotify_source = InotifySource::Create(*main_loop,
+ mpd_inotify_callback, nullptr,
&error);
if (inotify_source == NULL) {
g_warning("%s", error->message);