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:
parent
4acd0e4f3a
commit
9110202e4a
1 changed files with 15 additions and 11 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue