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
path: root/editor
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-06-28 16:54:48 +0300
committerIlya Zverev <zverik@textual.ru>2016-07-01 18:16:33 +0300
commitc52f59f5097fb2bfecff643be98c88f09de8d618 (patch)
treebe7cbbe13b247056d4c762fb847d41d89bbfe737 /editor
parentce8f47d82ceab3412f0488a2bd0e8666b6a85d42 (diff)
[editor] Do not send empty stats requests
Diffstat (limited to 'editor')
-rw-r--r--editor/user_stats.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp
index 22b5eddec6..17e505dd9a 100644
--- a/editor/user_stats.cpp
+++ b/editor/user_stats.cpp
@@ -82,6 +82,9 @@ UserStatsLoader::UserStatsLoader()
bool UserStatsLoader::Update(string const & userName)
{
+ if (userName.empty())
+ return false;
+
{
lock_guard<mutex> g(m_mutex);
m_userName = userName;