mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Android: fix crash if user is offline
If the user is offline, then there won't be a network response. Just debug log that the report couldn't send and move on
This commit is contained in:
parent
b8b4e9af5e
commit
169e41aa30
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ public class Analytics
|
||||||
public static void sendReport(String endpoint, byte[] data)
|
public static void sendReport(String endpoint, byte[] data)
|
||||||
{
|
{
|
||||||
StringRequest request = new StringRequest(Request.Method.POST, endpoint,
|
StringRequest request = new StringRequest(Request.Method.POST, endpoint,
|
||||||
null, error -> Log.debug("Send Report Failure code: "
|
null, error -> Log.debug("Failed to send report"))
|
||||||
+ error.networkResponse.statusCode))
|
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public byte[] getBody()
|
public byte[] getBody()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue