dnsmasq-manager: forget the watch when the callback hits

It removes the source, we shouldn't try to remove it on dispose() then.
This commit is contained in:
Lubomir Rintel 2015-09-30 15:48:24 +02:00
parent bde246d30b
commit 4fe86b0031

View file

@ -202,6 +202,7 @@ dm_watch_cb (GPid pid, gint status, gpointer user_data)
}
priv->pid = 0;
priv->dm_watch_id = 0;
g_signal_emit (manager, signals[STATE_CHANGED], 0, NM_DNSMASQ_STATUS_DEAD);
}