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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,11 +148,11 @@ public class CrashSender{
httpPost(Vars.crashReportURL, value.toJson(OutputType.json), r -> {
Log.info("Crash sent successfully.");
sent[0] = true;
System.exit(0);
System.exit(1);
}, t -> {
t.printStackTrace();
sent[0] = true;
System.exit(1);
System.exit(-1);
});
//sleep until report is sent