mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 14:10:36 +01:00
Don't complain if system settings service exits before connections are read
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3641 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
898c29cce2
commit
fcb725e296
1 changed files with 4 additions and 2 deletions
|
|
@ -43,10 +43,11 @@ read_one_connection (NMSystemConfigInterface *config, const char *filename)
|
|||
NMKeyfileConnection *connection;
|
||||
|
||||
connection = nm_keyfile_connection_new (filename);
|
||||
if (connection)
|
||||
if (connection) {
|
||||
g_hash_table_insert (priv->hash,
|
||||
(gpointer) nm_keyfile_connection_get_filename (connection),
|
||||
g_object_ref (connection));
|
||||
}
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
|
@ -221,7 +222,8 @@ dispose (GObject *object)
|
|||
g_object_unref (priv->monitor);
|
||||
}
|
||||
|
||||
g_hash_table_destroy (priv->hash);
|
||||
if (priv->hash)
|
||||
g_hash_table_destroy (priv->hash);
|
||||
|
||||
G_OBJECT_CLASS (sc_plugin_keyfile_parent_class)->dispose (object);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue