From b69963685bf883c30cbec927c8fda393df136db8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Dec 2021 17:24:55 +0300 Subject: attempt to fix #2932 --- protocols/Discord/src/guilds.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') 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; } -- cgit v1.2.3