From: David Zeuthen Date: Mon, 1 Aug 2011 15:54:47 +0000 (-0400) Subject: GDBusConnection: Only apply exit-on-closed semantics if properly initialized X-Git-Tag: 2.29.16~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659ba3d0b3eca1ee3af13d277ac8c847651b0a6a;p=platform%2Fupstream%2Fglib.git GDBusConnection: Only apply exit-on-closed semantics if properly initialized Otherwise there is no point in gracefully handling the error... https://bugzilla.gnome.org/show_bug.cgi?id=655664 Signed-off-by: David Zeuthen --- diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 091dc80..0f47c77 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -638,7 +638,7 @@ g_dbus_connection_real_closed (GDBusConnection *connection, gboolean remote_peer_vanished, GError *error) { - if (remote_peer_vanished && connection->exit_on_close) + if (remote_peer_vanished && connection->exit_on_close && connection->is_initialized) { if (error != NULL) {