Commit 659ba3d0 authored by David Zeuthen's avatar David Zeuthen
Browse files

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: default avatarDavid Zeuthen <davidz@redhat.com>
parent fcc415b1
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment