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.

(cherry picked from commit 5f93f01015)
This commit is contained in:
Beniamino Galvani 2016-01-04 14:18:02 +01:00
parent 11aa07ed93
commit 8204c2a196

View file

@ -828,6 +828,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);
}