mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Add method to remove registered CAPS listener
ServiceDiscoveryManager allows a listener for CAPS changes to be registered. It should also allow to remove a previously registered listener.
This commit is contained in:
parent
f611941dcf
commit
fdffd58d25
1 changed files with 4 additions and 0 deletions
|
@ -921,6 +921,10 @@ public final class ServiceDiscoveryManager extends Manager {
|
||||||
return entityCapabilitiesChangedListeners.add(entityCapabilitiesChangedListener);
|
return entityCapabilitiesChangedListeners.add(entityCapabilitiesChangedListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeEntityCapabilitiesChangedListener(EntityCapabilitiesChangedListener entityCapabilitiesChangedListener) {
|
||||||
|
return entityCapabilitiesChangedListeners.remove(entityCapabilitiesChangedListener);
|
||||||
|
}
|
||||||
|
|
||||||
private static final int RENEW_ENTITY_CAPS_DELAY_MILLIS = 25;
|
private static final int RENEW_ENTITY_CAPS_DELAY_MILLIS = 25;
|
||||||
|
|
||||||
private ScheduledAction renewEntityCapsScheduledAction;
|
private ScheduledAction renewEntityCapsScheduledAction;
|
||||||
|
|
Loading…
Reference in a new issue