[glib/glib-2-28] 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/glib-2-28] GDBusConnection: Only apply exit-on-closed semantics if properly initialized
- Date: Mon, 1 Aug 2011 16:09:00 +0000 (UTC)
commit 012b95fe48986ebfae15d76831d909b5ce467627
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 bd4d5d0..765446c 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -639,7 +639,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]