aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-15 22:50:49 +0100
committerMax Kellermann <max@duempel.org>2013-01-15 22:56:06 +0100
commit0dd5f2915a9c01992c18f6c983c082199be7c771 (patch)
tree5885ceebca7673ebf3e3a2a63496fce9f90962a0 /src/Main.cxx
parenta0ebd444ad52e00d23abca606819257fcb48889b (diff)
downloadmpd-0dd5f2915a9c01992c18f6c983c082199be7c771.tar.gz
mpd-0dd5f2915a9c01992c18f6c983c082199be7c771.tar.xz
mpd-0dd5f2915a9c01992c18f6c983c082199be7c771.zip
ServerSocket: use the SocketMonitor class
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index e0083bff7..917d89457 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -398,6 +398,9 @@ int mpd_main(int argc, char *argv[])
return EXIT_FAILURE;
}
+ main_task = g_thread_self();
+ main_loop = new EventLoop(EventLoop::Default());
+
success = listen_global_init(&error);
if (!success) {
g_warning("%s", error->message);
@@ -407,9 +410,6 @@ int mpd_main(int argc, char *argv[])
daemonize_set_user();
- main_task = g_thread_self();
- main_loop = new EventLoop(EventLoop::Default());
-
GlobalEvents::Initialize();
GlobalEvents::Register(GlobalEvents::IDLE, idle_event_emitted);
GlobalEvents::Register(GlobalEvents::SHUTDOWN, shutdown_event_emitted);