[glib] GDBusConnection: Only apply exit-on-closed semantics if properly initialized
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDBusConnection: Only apply exit-on-closed semantics if properly initialized
- Date: Mon, 1 Aug 2011 15:58:15 +0000 (UTC)
commit 659ba3d0b3eca1ee3af13d277ac8c847651b0a6a
Author: David Zeuthen <davidz redhat com>
Date: Mon Aug 1 11:54:47 2011 -0400
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>
gio/gdbusconnection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]