Merge pull request #3996 from unknownbrackets/net-minor

Fix reporting's net shutdown as well
This commit is contained in:
Unknown W. Brackets committed 2013-09-30 01:39:06 -07:00
commit 4fea731d61
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -132,13 +132,13 @@ namespace Reporting
bool SendReportRequest(const char *uri, const std::string &data, Buffer *output = NULL)
{
bool result = false;
net::AutoInit netInit;
http::Client http;
Buffer theVoid;
if (output == NULL)
output = &theVoid;
net::Init();
if (http.Resolve(ServerHostname(), ServerPort()))
{
http.Connect();
@@ -146,7 +146,6 @@ namespace Reporting
http.Disconnect();
result = true;
}
net::Shutdown();
return result;
}
+1 -1
Submodule native updated: a2fa1569f0...b7eb60d2b7.