diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-07 13:45:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-07 19:55:09 +0300 |
commit | e012650957335d5f4295441debf849b3b9b2f4ef (patch) | |
tree | 54438907b350f05b598ff16d9fbcb17c92672647 /protocols/Discord/src/connection.cpp | |
parent | e59fe8f85cfa3e309a465dd92d17ebfc7093c5fb (diff) |
first version of Discord with working gateway connection
Diffstat (limited to 'protocols/Discord/src/connection.cpp')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 5 |
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(); |