ppp-manager: clear @ppp_watch_id upon pppd termination

Set @ppp_watch_id to zero upon pppd termination, otherwise the call to
g_source_remove(priv->ppp_watch_id) in dispose() could trigger a failed
assertion.
This commit is contained in:
Beniamino Galvani 2016-01-04 14:18:02 +01:00
parent 0e164ac607
commit 5f93f01015

View file

@ -800,6 +800,7 @@ ppp_watch_cb (GPid pid, gint status, gpointer user_data)
nm_log_dbg (LOGD_PPP, "pppd pid %d cleaned up", priv->pid);
priv->pid = 0;
priv->ppp_watch_id = 0;
g_signal_emit (manager, signals[STATE_CHANGED], 0, NM_PPP_STATUS_DEAD);
}