From 2fb5146b571c64eba976d39550ccdf49af22bc31 Mon Sep 17 00:00:00 2001 From: Slawomir Bochenski Date: Tue, 14 Jun 2011 08:59:51 +0200 Subject: [PATCH] obexd: 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. --- obexd/plugins/phonebook-tracker.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 80dfc0214..d3962033c 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/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 -- 2.47.3