Filter certificate exceptions

pull/172/head
M66B 5 years ago
parent 16f7e79707
commit 9e6286cad8

@ -99,6 +99,7 @@ import javax.mail.MessagingException;
import javax.mail.Part; import javax.mail.Part;
import javax.mail.StoreClosedException; import javax.mail.StoreClosedException;
import javax.mail.internet.InternetAddress; import javax.mail.internet.InternetAddress;
import javax.net.ssl.SSLPeerUnverifiedException;
public class Log { public class Log {
private static final int MAX_CRASH_REPORTS = 5; private static final int MAX_CRASH_REPORTS = 5;
@ -304,6 +305,10 @@ public class Log {
"Resetting to invalid mark".equals(ex.getMessage()))) "Resetting to invalid mark".equals(ex.getMessage())))
return false; return false;
if (ex instanceof SSLPeerUnverifiedException ||
ex instanceof EmailService.UntrustedException)
return false;
// Rate limit // Rate limit
int count = prefs.getInt("crash_report_count", 0) + 1; int count = prefs.getInt("crash_report_count", 0) + 1;
prefs.edit().putInt("crash_report_count", count).apply(); prefs.edit().putInt("crash_report_count", count).apply();

Loading…
Cancel
Save