diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-06-28 16:54:48 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-07-01 18:16:33 +0300 |
commit | c52f59f5097fb2bfecff643be98c88f09de8d618 (patch) | |
tree | be7cbbe13b247056d4c762fb847d41d89bbfe737 /editor | |
parent | ce8f47d82ceab3412f0488a2bd0e8666b6a85d42 (diff) |
[editor] Do not send empty stats requests
Diffstat (limited to 'editor')
-rw-r--r-- | editor/user_stats.cpp | 3 |
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; |