1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Purge: fixed concurrent modification

This commit is contained in:
M66B 2022-11-05 08:03:55 +01:00
parent a31523d2c1
commit f688ccc7cf

View file

@ -2911,7 +2911,7 @@ class Core {
ifolder.setFlags(list.toArray(new Message[0]), flags, true);
} catch (MessagingException ex) {
Log.w(ex);
for (Message imessage : list)
for (Message imessage : new ArrayList<>(list))
try {
imessage.setFlag(Flags.Flag.DELETED, true);
} catch (MessagingException mex) {