summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/gateway.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/gateway.cpp')
-rw-r--r--protocols/Discord/src/gateway.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
//////////////////////////////////////////////////////////////////////////////////////