summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 0ecc2e4e..ecece281 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -417,10 +417,12 @@ static void register_reply(DBusPendingCall *call, void *data)
if (dbus_set_error_from_message(&derr, reply)) {
error("Registering failed: %s", derr.message);
dbus_error_free(&derr);
+ dbus_message_unref(reply);
raise(SIGTERM);
+ return;
}
- else
- debug("Successfully registered");
+
+ debug("Successfully registered headset service");
dbus_message_unref(reply);