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.
This commit is contained in:
Thomas Haller
2017-06-09 15:11:24 +02:00
parent 250e723951
commit b9af32b056

View File

@@ -643,6 +643,7 @@ ppp_watch_cb (GPid pid, int status, gpointer user_data)
priv->pid = 0;
priv->ppp_watch_id = 0;
_ppp_cleanup (manager);
g_signal_emit (manager, signals[STATE_CHANGED], 0, (guint) NM_PPP_STATUS_DEAD);
}