diff --git a/Core/Reporting.cpp b/Core/Reporting.cpp index 17cebe9179..fd06d5aafb 100644 --- a/Core/Reporting.cpp +++ b/Core/Reporting.cpp @@ -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; } diff --git a/native b/native index a2fa1569f0..b7eb60d2b7 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit a2fa1569f01a7c14ff29d15de0675c72b014c4d6 +Subproject commit b7eb60d2b7f6a9314eae8194343cd52de4fde13b