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 <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2011-08-01 11:54:47 -04:00
parent fcc415b16c
commit 659ba3d0b3

View File

@ -638,7 +638,7 @@ g_dbus_connection_real_closed (GDBusConnection *connection,
gboolean remote_peer_vanished, gboolean remote_peer_vanished,
GError *error) GError *error)
{ {
if (remote_peer_vanished && connection->exit_on_close) if (remote_peer_vanished && connection->exit_on_close && connection->is_initialized)
{ {
if (error != NULL) if (error != NULL)
{ {