From e5123d11e822a76eaea81d207b5b2932d04b3ced Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Apr 2025 19:08:12 +0300 Subject: fixes #4933 (Discord protocol unable to send messages or download server history after a few hours of uptime) --- protocols/Discord/src/gateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Discord/src/gateway.cpp') 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::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 -- cgit v1.2.3