mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 03:38:09 +02:00
ppp: fix cancelling timeout when pppd process exits
Otherwise, we get pppd_timed_out() later, which will
emit a DEAD state change at unexpected times.
(cherry picked from commit b9af32b056)
This commit is contained in:
parent
b87327a5fe
commit
1b954fe09b
1 changed files with 1 additions and 0 deletions
|
|
@ -643,6 +643,7 @@ ppp_watch_cb (GPid pid, int status, gpointer user_data)
|
||||||
|
|
||||||
priv->pid = 0;
|
priv->pid = 0;
|
||||||
priv->ppp_watch_id = 0;
|
priv->ppp_watch_id = 0;
|
||||||
|
_ppp_cleanup (manager);
|
||||||
g_signal_emit (manager, signals[STATE_CHANGED], 0, (guint) NM_PPP_STATUS_DEAD);
|
g_signal_emit (manager, signals[STATE_CHANGED], 0, (guint) NM_PPP_STATUS_DEAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue