mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Don't return transport properties for inactive contacts.
This avoids wasted connection attempts to contacts that are in the process of being introduced.
This commit is contained in:
@@ -164,6 +164,8 @@ class TransportPropertyManagerImpl implements TransportPropertyManager,
|
||||
Transaction txn = db.startTransaction(true);
|
||||
try {
|
||||
for (Contact c : db.getContacts(txn)) {
|
||||
// Don't return properties for inactive contacts
|
||||
if (!c.isActive()) continue;
|
||||
Group g = getContactGroup(c);
|
||||
// Find the latest remote update
|
||||
LatestUpdate latest = findLatest(txn, g.getId(), t, false);
|
||||
|
||||
Reference in New Issue
Block a user