crash send error code

This commit is contained in:
DeltaNedas
2020-09-22 06:16:40 +00:00
committed by GitHub
parent c7cfb290eb
commit 472d408bbc

View File

@@ -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