summaryrefslogtreecommitdiff
path: root/plugins/phonebook-tracker.c
diff options
context:
space:
mode:
authorRadoslaw Jablonski <ext-jablonski.radoslaw@nokia.com>2011-05-19 10:29:22 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-05-19 16:19:40 -0700
commitb0619290e4128bb583268bfbfbb66de9a30ecf7c (patch)
treed43cbfe125a65fa962d3fa5d87e7de866c1921bf /plugins/phonebook-tracker.c
parent787efa26dfb52a9425a6e1a651d359cb252c832e (diff)
downloadobexd-b0619290e4128bb583268bfbfbb66de9a30ecf7c.tar.gz
Fix newmissedcalls handling for large responses
Previously pull_newmissedcalls was called for every part when processing large response (more that one part of results) and number of 'newmissedcalls' was wrong in that scenario. Now newmissedcalls will be counted only once (during generating first part of mch results).
Diffstat (limited to 'plugins/phonebook-tracker.c')
-rw-r--r--plugins/phonebook-tracker.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index eec1e5d..3ff188a 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -1544,7 +1544,11 @@ int phonebook_pull_read(void *request)
if(!data)
return -ENOENT;
- if (g_strcmp0(data->req_name, "/telecom/mch.vcf") == 0) {
+ if (g_strcmp0(data->req_name,"/telecom/mch.vcf") == 0 &&
+ data->tracker_index == 0) {
+ /* new missed calls amount should be counted only once - it
+ * will be done during generating first part of results of
+ * missed calls history */
query = NEW_MISSED_CALLS_LIST;
col_amount = NEW_MISSED_CALLS_COL_AMOUNT;
pull_cb = pull_newmissedcalls;