diff options
author | George Hazan <george.hazan@gmail.com> | 2025-04-08 19:08:12 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-04-08 19:08:12 +0300 |
commit | e5123d11e822a76eaea81d207b5b2932d04b3ced (patch) | |
tree | b02c00d58ee602178705138a4b017ea37dee8c8c | |
parent | ac91cd55be7e2f69cfbf7e039feba2bdee7edfc0 (diff) |
fixes #4933 (Discord protocol unable to send messages or download server history after a few hours of uptime)
-rw-r--r-- | protocols/Discord/src/gateway.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index e3bf1b307c..283ebe6bb5 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -101,7 +101,7 @@ void JsonWebSocket<CDiscordProto>::process(const JSONNode &json) case OPCODE_RECONNECT: // we need to reconnect asap
p->debugLogA("we need to reconnect, leaving worker thread");
- p->m_bTerminated = true;
+ p->m_ws.terminate();
return;
case OPCODE_INVALID_SESSION: // session invalidated
|