summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-23 13:38:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-23 13:38:18 +0300
commita36d57052392c03132e1b34a2c41da9944551768 (patch)
tree927e3b761d6d52caf9bf052a96a7c373cff407f6
parent70437dd0ee5856d76a1000aad4633be7e10f8362 (diff)
code cleaning
-rw-r--r--protocols/Discord/src/http.cpp3
-rw-r--r--protocols/Discord/src/proto.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp
index ad57ffc62c..1d50fa4e88 100644
--- a/protocols/Discord/src/http.cpp
+++ b/protocols/Discord/src/http.cpp
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
-AsyncHttpRequest* CDiscordProto::Push(AsyncHttpRequest *pReq, int iTimeout)
+void CDiscordProto::Push(AsyncHttpRequest *pReq, int iTimeout)
{
pReq->timeout = iTimeout;
{
@@ -25,7 +25,6 @@ AsyncHttpRequest* CDiscordProto::Push(AsyncHttpRequest *pReq, int iTimeout)
m_arHttpQueue.insert(pReq);
}
SetEvent(m_evRequestsQueue);
- return pReq;
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 6b42804e0e..962baca616 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -139,7 +139,7 @@ class CDiscordProto : public PROTO<CDiscordProto>
LIST<AsyncHttpRequest> m_arHttpQueue;
void ExecuteRequest(AsyncHttpRequest *pReq);
- AsyncHttpRequest* Push(AsyncHttpRequest *pReq, int iTimeout = 10000);
+ void Push(AsyncHttpRequest *pReq, int iTimeout = 10000);
HANDLE m_hWorkerThread; // worker thread handle
HNETLIBCONN m_hAPIConnection; // working connection