Diff between e01e89179d4ef8016f5593674834084ca549ca2a and 7738e9ac416b8dd9aa8f3209b75554f85836c5f0

Changed Files

File Additions Deletions Status
tools/mpris-proxy.c +1 -0 modified

Full Patch

diff --git a/tools/mpris-proxy.c b/tools/mpris-proxy.c
index 3779b68..e5fc91f 100644
--- a/tools/mpris-proxy.c
+++ b/tools/mpris-proxy.c
@@ -480,6 +480,7 @@ static void add_player(DBusConnection *conn, const char *name,
 	reply = dbus_connection_send_with_reply_and_block(sys, msg, -1, &err);
 	if (!reply) {
 		fprintf(stderr, "Can't register player\n");
+		dbus_connection_unregister_object_path(sys, path);
 		free(owner);
 		if (dbus_error_is_set(&err)) {
 			fprintf(stderr, "%s\n", err.message);