summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Steam/src/steam_contacts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index a52d2ed3a7..2f20ba9378 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -395,6 +395,11 @@ void CSteamProto::OnGotFriendList(const JSONNode &root, void *)
json_string steamId = _friend["steamid"].as_string();
friendsMap.insert(std::make_pair(steamId, &_friend));
}
+
+ if (friendsMap.empty()) {
+ debugLogA("Empty friends list, exiting");
+ return;
+ }
// Check and update contacts in database
for (auto &hContact : AccContacts()) {