dnsmasq-manager: forget the watch when the callback hits

It removes the source, we shouldn't try to remove it on dispose() then.

(cherry picked from commit 4fe86b0031)
This commit is contained in:
Lubomir Rintel 2015-09-30 15:48:24 +02:00 committed by Thomas Haller
parent e88161172e
commit e19d5519ca

View file

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