diff options
-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
|