diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-16 16:56:14 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-16 16:56:14 +0300 |
commit | 2331374d1ffe2432496e484443a58e859a7f560f (patch) | |
tree | 8c8cf662bb9e8df29b7fb1969e016dcc9632a04a /protocols/Discord/src/connection.cpp | |
parent | 65783c3a344eaf555e46ab77dc9f3603cc07ce48 (diff) |
Discord: the safer way of handling web sockets
Diffstat (limited to 'protocols/Discord/src/connection.cpp')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp index ff7e765ecb..4ac9cead47 100644 --- a/protocols/Discord/src/connection.cpp +++ b/protocols/Discord/src/connection.cpp @@ -93,8 +93,8 @@ void CDiscordProto::ShutdownSession() pMfaDialog->Close();
if (m_hWorkerThread)
SetEvent(m_evRequestsQueue);
- if (m_ws)
- m_ws->terminate();
+ if (m_bConnected)
+ m_ws.terminate();
if (m_hAPIConnection)
Netlib_Shutdown(m_hAPIConnection);
|