[Telepathy-commits] [telepathy-mission-control/master] Exit on D-Bus disconnection
Alberto Mardegan
alberto.mardegan at nokia.com
Fri Nov 7 01:25:26 PST 2008
---
src/mcd-master.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/mcd-master.c b/src/mcd-master.c
index 03808a8..4e79f78 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -649,6 +649,11 @@ install_dbus_filter (McdMasterPrivate *priv)
g_warning ("Match rule adding failed");
dbus_error_free (&error);
}
+
+ /* FIXME: it doesn't really belong here, but for now it's OK. Move it when
+ * we switch to TpDBusDaemon APIs for monitoring D-Bus names */
+ /* There's no point in MC to stay alive if it's disconnected from the bus */
+ dbus_connection_set_exit_on_disconnect (dbus_conn, TRUE);
}
static GObject *
--
1.5.6.5
More information about the Telepathy-commits
mailing list