InotifySource: use the SocketMonitor class

This commit is contained in:
Max Kellermann
2013-01-15 18:18:02 +01:00
parent 2101daef5a
commit 7071126770
5 changed files with 29 additions and 43 deletions

View File

@@ -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);