From c52f59f5097fb2bfecff643be98c88f09de8d618 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Tue, 28 Jun 2016 16:54:48 +0300 Subject: [PATCH] [editor] Do not send empty stats requests --- editor/user_stats.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 g(m_mutex); m_userName = userName;