summaryrefslogtreecommitdiffstats
path: root/network/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'network/server.c')
-rw-r--r--network/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/network/server.c b/network/server.c
index f6f54474..17534f9c 100644
--- a/network/server.c
+++ b/network/server.c
@@ -1117,6 +1117,7 @@ int server_register_from_file(DBusConnection *conn, const char *path,
bacpy(&ns->src, src);
ns->path = g_strdup(path);
ns->id = id;
+ ns->conn = dbus_connection_ref(conn);
ns->name = textfile_get(filename, "name");
if (!ns->name) {
/* Name is mandatory */