summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/guilds.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-11 17:24:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-11 17:24:55 +0300
commitb69963685bf883c30cbec927c8fda393df136db8 (patch)
tree7f09a6867119badaca6f281070cad86190e45bcb /protocols/Discord/src/guilds.cpp
parent78ffd40384ed8a7df3f5bccb3480e7c424bbb90c (diff)
attempt to fix #2932
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r--protocols/Discord/src/guilds.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp
index 9b11342881..568c2bf74b 100644
--- a/protocols/Discord/src/guilds.cpp
+++ b/protocols/Discord/src/guilds.cpp
@@ -212,7 +212,8 @@ void CDiscordProto::ProcessGuild(const JSONNode &pRoot)
for (auto &it : pGuild->arChatUsers)
AddGuildUser(pGuild, *it);
- ForkThread(&CDiscordProto::BatchChatCreate, pGuild);
+ if (!m_bTerminated)
+ ForkThread(&CDiscordProto::BatchChatCreate, pGuild);
pGuild->bSynced = true;
}