mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 14:20:17 +01:00
devices/wwan: Stop PPP manager in deactivate_cleanup()
When ModemManager exits, pppd is not killed due to nm_exported_object not
unexported (ppp_manager refcount = 2).
Call to nm_ppp_manager_stop_sync() allows to correctly clean ppp_manager
before calling g_clear_object(), as this is done in nm-device-ethernet.c and
nm-device-adsl.c.
[thaller@redhat.com: rebase and adjust patch]
https://bugzilla.gnome.org/show_bug.cgi?id=796108
https://mail.gnome.org/archives/networkmanager-list/2018-May/msg00015.html
(cherry picked from commit 227e179560)
This commit is contained in:
parent
cf6a5e0f0a
commit
c3fc960587
1 changed files with 1 additions and 0 deletions
|
|
@ -1097,6 +1097,7 @@ deactivate_cleanup (NMModem *self, NMDevice *device)
|
|||
|
||||
if (priv->ppp_manager) {
|
||||
g_signal_handlers_disconnect_by_data (priv->ppp_manager, self);
|
||||
nm_ppp_manager_stop_sync (priv->ppp_manager);
|
||||
g_clear_object (&priv->ppp_manager);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue