Don't poll if already connected via a better transport.

This commit is contained in:
akwizgran
2020-05-25 17:16:42 +01:00
parent 5b04527c54
commit 4aaa8c3b93
2 changed files with 3 additions and 3 deletions

View File

@@ -215,7 +215,7 @@ class PollerImpl implements Poller, EventListener {
Map<ContactId, TransportProperties> remote =
transportPropertyManager.getRemoteProperties(t);
Collection<ContactId> connected =
connectionRegistry.getConnectedContacts(t);
connectionRegistry.getConnectedOrBetterContacts(t);
Collection<Pair<TransportProperties, ConnectionHandler>>
properties = new ArrayList<>();
for (Entry<ContactId, TransportProperties> e : remote.entrySet()) {