summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/connection.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-07 13:45:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-07 19:55:09 +0300
commite012650957335d5f4295441debf849b3b9b2f4ef (patch)
tree54438907b350f05b598ff16d9fbcb17c92672647 /protocols/Discord/src/connection.cpp
parente59fe8f85cfa3e309a465dd92d17ebfc7093c5fb (diff)
first version of Discord with working gateway connection
Diffstat (limited to 'protocols/Discord/src/connection.cpp')
-rw-r--r--protocols/Discord/src/connection.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp
index bc48d402e4..7a7fb306a9 100644
--- a/protocols/Discord/src/connection.cpp
+++ b/protocols/Discord/src/connection.cpp
@@ -64,10 +64,6 @@ void CDiscordProto::OnLoggedIn()
m_bOnline = true;
SetServerStatus(m_iDesiredStatus);
- Push(new AsyncHttpRequest(this, REQUEST_GET, "/users/@me/guilds", &CDiscordProto::OnReceiveGuilds));
- Push(new AsyncHttpRequest(this, REQUEST_GET, "/users/@me/channels", &CDiscordProto::OnReceiveChannels));
- Push(new AsyncHttpRequest(this, REQUEST_GET, "/users/@me/relationships", &CDiscordProto::OnReceiveFriends));
-
if (m_szGateway.IsEmpty())
Push(new AsyncHttpRequest(this, REQUEST_GET, "/gateway", &CDiscordProto::OnReceiveGateway));
else
@@ -91,6 +87,7 @@ void CDiscordProto::ShutdownSession()
{
debugLogA("CDiscordProto::ShutdownSession");
m_bTerminated = true;
+ m_iGatewaySeq = 0;
if (m_hWorkerThread)
SetEvent(m_evRequestsQueue);
OnLoggedOut();