mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Merge pull request #441 from guusdk/remove-caps-changed-listener
Add method to remove registered CAPS listener
This commit is contained in:
commit
61d56aa06a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue