1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 15:32:52 +00:00

Prevent send crash

This commit is contained in:
M66B 2021-12-21 17:11:41 +01:00
parent 4acd0e4f3a
commit 9110202e4a

View file

@ -1325,6 +1325,7 @@ public class SMTPTransport extends Transport {
traceOutput.setReporter(total.value, new TraceOutputStream.IReport() {
@Override
public void report(int pos, int total) {
try {
if (reporter == null)
return;
@ -1339,6 +1340,9 @@ public class SMTPTransport extends Transport {
sent = total;
reporter.report(sent, total);
} catch (Throwable ex) {
eu.faircode.email.Log.e(ex);
}
}
});
if (chunkSize > 0 && supportsExtension("CHUNKING")) {