mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 06:10:11 +01:00
libnm-glib: handle errors on AddConnection reply
This commit is contained in:
parent
ad9270da79
commit
dd6d72d6a1
1 changed files with 7 additions and 4 deletions
|
|
@ -394,10 +394,13 @@ add_connection_done (DBusGProxy *proxy,
|
|||
{
|
||||
AddConnectionInfo *info = user_data;
|
||||
|
||||
info->connection = new_connection_cb (proxy, path, info->self);
|
||||
g_assert (info->connection);
|
||||
|
||||
/* Wait until this connection is fully initialized before calling the callback */
|
||||
if (error) {
|
||||
add_connection_info_complete (info->self, info, error);
|
||||
} else {
|
||||
info->connection = new_connection_cb (proxy, path, info->self);
|
||||
g_assert (info->connection);
|
||||
/* Wait until this connection is fully initialized before calling the callback */
|
||||
}
|
||||
|
||||
g_free (path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue