Commit 345e5e63 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

Do not explicitly shutdown the indexer, it will shutdown by itself then

2009-02-27  Carlos Garnacho  <carlos@imendio.com>

        * src/trackerd/tracker-main.c (shutdown_indexer) (main): Do not
        explicitly shutdown the indexer, it will shutdown by itself then
        trackerd disappears from the session bus, and it could respawn a
        indexer instance if it wasn't there.

svn path=/trunk/; revision=2988
parent 34ace3c5
2009-02-27 Carlos Garnacho <carlos@imendio.com>
* src/trackerd/tracker-main.c (shutdown_indexer) (main): Do not
explicitly shutdown the indexer, it will shutdown by itself then
trackerd disappears from the session bus, and it could respawn a
indexer instance if it wasn't there.
2009-02-27 Carlos Garnacho <carlos@imendio.com>
* src/tracker-indexer/tracker-indexer.c (check_stopped): Do not report
......
......@@ -632,12 +632,6 @@ initialize_databases (void)
return TRUE;
}
static void
shutdown_indexer (void)
{
}
static void
shutdown_databases (void)
{
......@@ -1151,15 +1145,6 @@ main (gint argc, gchar *argv[])
g_timeout_add_full (G_PRIORITY_LOW, 5000, shutdown_timeout_cb, NULL, NULL);
g_message ("Waiting for indexer to finish");
org_freedesktop_Tracker_Indexer_shutdown (tracker_dbus_indexer_get_proxy (), &error);
if (error) {
g_message ("Could not shutdown the indexer, %s", error->message);
g_message ("Continuing anyway...");
g_error_free (error);
}
g_message ("Cleaning up");
if (private->processor) {
/* We do this instead of let the private data free
......@@ -1170,7 +1155,6 @@ main (gint argc, gchar *argv[])
private->processor = NULL;
}
shutdown_indexer ();
shutdown_databases ();
shutdown_directories ();
......
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