mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Check that there's only one local client versions message.
This commit is contained in:
@@ -262,6 +262,7 @@ class ClientVersioningManagerImpl implements ClientVersioningManager, Client,
|
||||
storeClientVersions(txn, newVersions);
|
||||
return true;
|
||||
}
|
||||
if (ids.size() != 1) throw new DbException();
|
||||
MessageId m = ids.iterator().next();
|
||||
List<ClientVersion> oldVersions = loadClientVersions(txn, m);
|
||||
if (oldVersions.equals(newVersions)) return false;
|
||||
|
||||
Reference in New Issue
Block a user