crash send error code
This commit is contained in:
@@ -148,11 +148,11 @@ public class CrashSender{
|
|||||||
httpPost(Vars.crashReportURL, value.toJson(OutputType.json), r -> {
|
httpPost(Vars.crashReportURL, value.toJson(OutputType.json), r -> {
|
||||||
Log.info("Crash sent successfully.");
|
Log.info("Crash sent successfully.");
|
||||||
sent[0] = true;
|
sent[0] = true;
|
||||||
System.exit(0);
|
System.exit(1);
|
||||||
}, t -> {
|
}, t -> {
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
sent[0] = true;
|
sent[0] = true;
|
||||||
System.exit(1);
|
System.exit(-1);
|
||||||
});
|
});
|
||||||
|
|
||||||
//sleep until report is sent
|
//sleep until report is sent
|
||||||
|
|||||||
Reference in New Issue
Block a user