Skip to content
Snippets Groups Projects
Unverified Commit d414e12f authored by akwizgran's avatar akwizgran
Browse files

Don't return transport properties for inactive contacts.

This avoids wasted connection attempts to contacts that are in the process of being introduced.
parent 2fddec85
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment