Commit 4a7d50e5 authored by Sam Thursfield's avatar Sam Thursfield

Merge branch 'sam/tracker-miner-critical' into 'master'

Avoid g_critical() warning triggered by D-Bus API

See merge request GNOME/tracker!141
parents 60df4905 a9f702a5
......@@ -495,10 +495,11 @@ void
tracker_miner_start (TrackerMiner *miner)
{
g_return_if_fail (TRACKER_IS_MINER (miner));
g_return_if_fail (miner->priv->started == FALSE);
miner->priv->started = TRUE;
g_signal_emit (miner, signals[STARTED], 0);
if (miner->priv->started == FALSE) {
miner->priv->started = TRUE;
g_signal_emit (miner, signals[STARTED], 0);
}
}
/**
......@@ -513,10 +514,11 @@ void
tracker_miner_stop (TrackerMiner *miner)
{
g_return_if_fail (TRACKER_IS_MINER (miner));
g_return_if_fail (miner->priv->started == TRUE);
miner->priv->started = FALSE;
g_signal_emit (miner, signals[STOPPED], 0);
if (miner->priv->started == TRUE) {
miner->priv->started = FALSE;
g_signal_emit (miner, signals[STOPPED], 0);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment