mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 18:50:18 +01:00
libnm: clear cancellable in new_object_manager() before emitting signal
Emitting signals may have side-effects. Just clear the cancellable first, it is handled for good.
This commit is contained in:
parent
e0ddf64522
commit
d5efcc1115
1 changed files with 1 additions and 1 deletions
|
|
@ -2408,8 +2408,8 @@ new_object_manager (GObject *source_object, GAsyncResult *res, gpointer user_dat
|
|||
NMClient *self = NM_CLIENT (user_data);
|
||||
NMClientPrivate *priv = NM_CLIENT_GET_PRIVATE (self);
|
||||
|
||||
g_object_notify (G_OBJECT (user_data), NM_CLIENT_NM_RUNNING);
|
||||
g_clear_object (&priv->new_object_manager_cancellable);
|
||||
g_object_notify (G_OBJECT (user_data), NM_CLIENT_NM_RUNNING);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue