diff options
Diffstat (limited to 'audio/main.c')
-rw-r--r-- | audio/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/audio/main.c b/audio/main.c index 5c44df9b..98dc1d4f 100644 --- a/audio/main.c +++ b/audio/main.c @@ -36,6 +36,7 @@ #include "dbus.h" #include "logging.h" +#include "unix.h" #include "manager.h" #include "headset.h" @@ -73,6 +74,11 @@ int main(int argc, char *argv[]) exit(1); } + if (unix_init() < 0) { + error("Unable to setup unix socket"); + exit(1); + } + if (audio_init(conn) < 0) { error("Audio init failed!"); exit(1); @@ -92,6 +98,8 @@ int main(int argc, char *argv[]) headset_exit(); + unix_exit(); + dbus_connection_unref(conn); g_main_loop_unref(main_loop); |