1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Merge pull request #441 from guusdk/remove-caps-changed-listener

Add method to remove registered CAPS listener
This commit is contained in:
Florian Schmaus 2021-11-04 13:30:19 +01:00 committed by GitHub
commit 61d56aa06a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -921,6 +921,10 @@ public final class ServiceDiscoveryManager extends Manager {
return entityCapabilitiesChangedListeners.add(entityCapabilitiesChangedListener);
}
public boolean removeEntityCapabilitiesChangedListener(EntityCapabilitiesChangedListener entityCapabilitiesChangedListener) {
return entityCapabilitiesChangedListeners.remove(entityCapabilitiesChangedListener);
}
private static final int RENEW_ENTITY_CAPS_DELAY_MILLIS = 25;
private ScheduledAction renewEntityCapsScheduledAction;