[tracker] tracker-store: clear the watchdog timer when it fires
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: clear the watchdog timer when it fires
- Date: Thu, 12 Mar 2015 01:21:49 +0000 (UTC)
commit 67583977aba828e580edc7a8429376f8cc520ac3
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Tue Mar 3 15:20:03 2015 -0800
tracker-store: clear the watchdog timer when it fires
Otherwise glib complain that we remove an invalid source.
https://bugzilla.gnome.org/show_bug.cgi?id=745565
src/tracker-store/tracker-store.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.vala b/src/tracker-store/tracker-store.vala
index 0887c7f..00a40bb 100644
--- a/src/tracker-store/tracker-store.vala
+++ b/src/tracker-store/tracker-store.vala
@@ -106,6 +106,7 @@ public class Tracker.Store {
var query_task = (QueryTask) task;
query_task.watchdog_id = Timeout.add_seconds (max_task_time, () => {
query_task.cancellable.cancel ();
+ query_task.watchdog_id = 0;
return false;
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]