mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 23:30:28 +01:00
cli: add missing NULL-check
Only the connection down operation is cancellable, the other actions are not.
Fixes: 73b560c215
This commit is contained in:
parent
cc1491401f
commit
7399cf3b16
1 changed files with 3 additions and 2 deletions
|
|
@ -2774,8 +2774,9 @@ connection_cb_info_finish (ConnectionCbInfo *info, gpointer connection)
|
|||
|
||||
if (info->timeout_id)
|
||||
g_source_remove (info->timeout_id);
|
||||
g_cancellable_cancel (info->cancellable);
|
||||
g_object_unref (info->cancellable);
|
||||
|
||||
nm_clear_g_cancellable (&info->cancellable);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (info->nmc->client, connection_removed_cb, info);
|
||||
g_slice_free (ConnectionCbInfo, info);
|
||||
quit ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue