mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00: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
|
@ -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…
Reference in a new issue