diff options
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 1 | ||||
-rw-r--r-- | protocols/Discord/src/gateway.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp index 4ac9cead47..909c4f528f 100644 --- a/protocols/Discord/src/connection.cpp +++ b/protocols/Discord/src/connection.cpp @@ -87,6 +87,7 @@ void CDiscordProto::ShutdownSession() return;
debugLogA("CDiscordProto::ShutdownSession");
+ m_bTerminated = true;
// shutdown all resources
if (pMfaDialog)
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index eb29043394..c038234aec 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -76,7 +76,7 @@ bool CDiscordProto::GatewayThreadWorker() m_bConnected = true;
m_ws.run();
m_bConnected = false;
- return true;
+ return !m_bTerminated;
}
//////////////////////////////////////////////////////////////////////////////////////
|