From c7f986bafc0d219763df221759d43def4780f1f0 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Sat, 16 Apr 2016 23:58:01 +0000 Subject: [PATCH] remove redundant call --- .../application/LoginServer/src/shared/ClientConnection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp index 32ffaa9f..a71c94dc 100755 --- a/engine/server/application/LoginServer/src/shared/ClientConnection.cpp +++ b/engine/server/application/LoginServer/src/shared/ClientConnection.cpp @@ -169,7 +169,7 @@ void ClientConnection::onReceive(const Archive::ByteStream & message) } //----------------------------------------------------------------------- - +// This is used by curl; arguably would be better placed elsewhere? static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) { ((std::string*)userp)->append((char*)contents, size * nmemb); @@ -227,7 +227,6 @@ void ClientConnection::validateClient(const std::string & id, const std::string curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); curl_easy_cleanup(curl); - curl_global_cleanup(); // where possible we'll use http status codes - later this will become json and this nonsense isn't necessary if (readBuffer == "1")