mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
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:
parent
fcc415b16c
commit
659ba3d0b3
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user