From 0fd6fe57ebca7ce96403487ca335d72dae249578 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 2 Apr 2025 20:14:31 +0300 Subject: fixes #4936 (Discord: After exiting Miranda invisible=>online) --- 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 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; } ////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3