diff options
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 3 |
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; } |