Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'local_ads/statistics.cpp')
-rw-r--r--local_ads/statistics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index ae1e4e98f7..f60782684c 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -167,8 +167,9 @@ void Statistics::Startup()
SendToServer();
};
- auto const recursiveAsyncTask = [asyncTask]
+ auto const recursiveAsyncTask = [this, asyncTask]
{
+ IndexMetadata();
asyncTask();
GetPlatform().RunDelayedTask(Platform::Thread::File, kSendingTimeout, asyncTask);
};
@@ -494,7 +495,7 @@ void Statistics::CleanupAfterTesting()
GetPlatform().RmDirRecursively(statsFolder);
}
-void Statistics::SetCustomServerSerializer(ServerSerializer && serializer)
+void Statistics::SetCustomServerSerializer(ServerSerializer const & serializer)
{
GetPlatform().RunTask(Platform::Thread::File,
[this, serializer] { m_serverSerializer = serializer; });