summaryrefslogtreecommitdiff
path: root/plugins/phonebook-tracker.c
diff options
context:
space:
mode:
authorSlawomir Bochenski <lkslawek@gmail.com>2011-06-14 08:59:51 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2011-06-14 12:44:45 +0300
commitc93fe57fcb21043821f0bb3945e04b9f51c84bb5 (patch)
tree22b70418a234e81a98b5015b00b022d13c8bd154 /plugins/phonebook-tracker.c
parent8775723ea60101e81c9514798157c2de0c0ff531 (diff)
downloadobexd-c93fe57fcb21043821f0bb3945e04b9f51c84bb5.tar.gz
Send new missed calls count once
Change introduced by commit b0619290e4128bb583268bfbfbb66de9a30ecf7c prevented calling count query multiple times when getting the phone book in parts. However value of newmissedcalls was kept between calls to phonebook_pull_read() resulting in adding application parameters header multiple times.
Diffstat (limited to 'plugins/phonebook-tracker.c')
-rw-r--r--plugins/phonebook-tracker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 80dfc02..d396203 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -1551,6 +1551,8 @@ int phonebook_pull_read(void *request)
if (!data)
return -ENOENT;
+ data->newmissedcalls = 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