mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-14 00:02:05 +01:00
Avoid ConcurrentModificationException
This commit is contained in:
parent
7a4977181f
commit
04bc887960
1 changed files with 2 additions and 1 deletions
|
@ -1033,7 +1033,8 @@ public abstract class OmemoService<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey,
|
|||
int maxAgeHours) {
|
||||
OmemoCachedDeviceList deviceList = new OmemoCachedDeviceList(contactsDeviceList); // Don't work on original list.
|
||||
|
||||
for (int deviceId : deviceList.getActiveDevices()) {
|
||||
// Iterate through original list, but modify copy instead
|
||||
for (int deviceId : contactsDeviceList.getActiveDevices()) {
|
||||
OmemoDevice device = new OmemoDevice(contact, deviceId);
|
||||
|
||||
Date lastDeviceIdPublication = getOmemoStoreBackend().getDateOfLastDeviceIdPublication(userDevice, device);
|
||||
|
|
Loading…
Reference in a new issue