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:
akwizgran
2016-04-25 16:12:24 +01:00
parent 2fddec85dd
commit d414e12fb5

View File

@@ -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);