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:
parent
a31523d2c1
commit
f688ccc7cf
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue