GDBusConnection: Only apply exit-on-closed semantics if properly initialized
authorDavid Zeuthen <davidz@redhat.com>
Mon, 1 Aug 2011 15:54:47 +0000 (11:54 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 1 Aug 2011 15:58:05 +0000 (11:58 -0400)
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>
gio/gdbusconnection.c

index 091dc80..0f47c77 100644 (file)
@@ -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)
         {