mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix reporting's net shutdown as well.
This commit is contained in:
parent
f48e0af235
commit
2da30d59d1
2 changed files with 2 additions and 3 deletions
|
@ -132,13 +132,13 @@ namespace Reporting
|
||||||
bool SendReportRequest(const char *uri, const std::string &data, Buffer *output = NULL)
|
bool SendReportRequest(const char *uri, const std::string &data, Buffer *output = NULL)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
net::AutoInit netInit;
|
||||||
http::Client http;
|
http::Client http;
|
||||||
Buffer theVoid;
|
Buffer theVoid;
|
||||||
|
|
||||||
if (output == NULL)
|
if (output == NULL)
|
||||||
output = &theVoid;
|
output = &theVoid;
|
||||||
|
|
||||||
net::Init();
|
|
||||||
if (http.Resolve(ServerHostname(), ServerPort()))
|
if (http.Resolve(ServerHostname(), ServerPort()))
|
||||||
{
|
{
|
||||||
http.Connect();
|
http.Connect();
|
||||||
|
@ -146,7 +146,6 @@ namespace Reporting
|
||||||
http.Disconnect();
|
http.Disconnect();
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
net::Shutdown();
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
2
native
2
native
|
@ -1 +1 @@
|
||||||
Subproject commit a2fa1569f01a7c14ff29d15de0675c72b014c4d6
|
Subproject commit b7eb60d2b7f6a9314eae8194343cd52de4fde13b
|
Loading…
Add table
Reference in a new issue