summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-06-09 15:11:24 +0200
committerThomas Haller <thaller@redhat.com>2017-06-09 16:15:07 +0200
commitb9af32b056ae7c93b33644b8a24641a86bf66e2c (patch)
treef27c245729c909738cc4851f539ea63081d5149e
parent250e7239511f4c8de6831e3c16d8d5f6fac383dc (diff)
downloadNetworkManager-b9af32b056ae7c93b33644b8a24641a86bf66e2c.tar.gz
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.
-rw-r--r--src/ppp/nm-ppp-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ppp/nm-ppp-manager.c b/src/ppp/nm-ppp-manager.c
index 575bf11e0d..6343df8bf4 100644
--- a/src/ppp/nm-ppp-manager.c
+++ b/src/ppp/nm-ppp-manager.c
@@ -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);
}