mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 21:29:54 +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);
|
Transaction txn = db.startTransaction(true);
|
||||||
try {
|
try {
|
||||||
for (Contact c : db.getContacts(txn)) {
|
for (Contact c : db.getContacts(txn)) {
|
||||||
|
// Don't return properties for inactive contacts
|
||||||
|
if (!c.isActive()) continue;
|
||||||
Group g = getContactGroup(c);
|
Group g = getContactGroup(c);
|
||||||
// Find the latest remote update
|
// Find the latest remote update
|
||||||
LatestUpdate latest = findLatest(txn, g.getId(), t, false);
|
LatestUpdate latest = findLatest(txn, g.getId(), t, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user