mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 19:30:37 +01:00
proxy: fix passing cancellable to async D-Bus operations
We must not cancel pacrunner_cancellable when the D-Bus proxy is created. Instead, keep it around and use it later for the asynchronous D-Bus operations. This doesn't really matter at the moment, because the pacrunner manager is only destroyed when NetworkManager is about to terminated. That is the only time when we actually cancel the asynchronous request. Also, at that time we no longer iterate the mainloop, so the pending requests are never completed anyway.
This commit is contained in:
parent
df137fdf9a
commit
a08540d967
1 changed files with 0 additions and 1 deletions
|
|
@ -330,7 +330,6 @@ pacrunner_proxy_cb (GObject *source, GAsyncResult *res, gpointer user_data)
|
|||
priv = NM_PACRUNNER_MANAGER_GET_PRIVATE (self);
|
||||
|
||||
priv->pacrunner = proxy;
|
||||
nm_clear_g_cancellable (&priv->pacrunner_cancellable);
|
||||
|
||||
g_signal_connect (priv->pacrunner, "notify::g-name-owner",
|
||||
G_CALLBACK (name_owner_changed_cb), self);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue