mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 14:41:39 +00:00
Merge pull request #15731 from unknownbrackets/reporting-crash
Reporting: Avoid crash if socket connect fails
This commit is contained in:
commit
fc70d21d04
@ -280,9 +280,11 @@ namespace Reporting
|
||||
return false;
|
||||
|
||||
if (http.Resolve(serverHost, ServerPort())) {
|
||||
http.Connect();
|
||||
int result = http.POST(http::RequestParams(uri), data, mimeType, output, &progress);
|
||||
http.Disconnect();
|
||||
int result = -1;
|
||||
if (http.Connect()) {
|
||||
result = http.POST(http::RequestParams(uri), data, mimeType, output, &progress);
|
||||
http.Disconnect();
|
||||
}
|
||||
|
||||
return result >= 200 && result < 300;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user