diff options
| author | George Hazan <ghazan@miranda.im> | 2021-12-11 17:24:55 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-12-11 17:24:55 +0300 |
| commit | b69963685bf883c30cbec927c8fda393df136db8 (patch) | |
| tree | 7f09a6867119badaca6f281070cad86190e45bcb | |
| parent | 78ffd40384ed8a7df3f5bccb3480e7c424bbb90c (diff) | |
attempt to fix #2932
| -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; } |
