[tracker/porting/processor-rework: 4/5] Fixed trackerd crasher when shutting down if started in readonly mode
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/porting/processor-rework: 4/5] Fixed trackerd crasher when shutting down if started in readonly mode
- Date: Fri, 5 Jun 2009 06:49:38 -0400 (EDT)
commit 12c737865dfbca0b4b7d8b4c29655385b86044f9
Author: Martyn Russell <martyn imendio com>
Date: Mon Jun 1 16:28:57 2009 +0100
Fixed trackerd crasher when shutting down if started in readonly mode
---
src/trackerd/tracker-processor.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/trackerd/tracker-processor.c b/src/trackerd/tracker-processor.c
index ae8bfe6..51c66f2 100644
--- a/src/trackerd/tracker-processor.c
+++ b/src/trackerd/tracker-processor.c
@@ -98,6 +98,7 @@ struct TrackerProcessorPrivate {
GTimer *timer;
+ gboolean been_started;
gboolean interrupted;
gboolean finished_modules;
@@ -1950,6 +1951,8 @@ tracker_processor_start (TrackerProcessor *processor)
{
g_return_if_fail (TRACKER_IS_PROCESSOR (processor));
+ processor->private->been_started = TRUE;
+
processor->private->interrupted = FALSE;
processor->private->finished_modules = FALSE;
@@ -1965,6 +1968,10 @@ tracker_processor_stop (TrackerProcessor *processor)
{
g_return_if_fail (TRACKER_IS_PROCESSOR (processor));
+ if (!processor->private->been_started) {
+ return;
+ }
+
processor->private->interrupted = TRUE;
process_modules_stop (processor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]