mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Rework Roster's SubscribeListener
allow multiple of them to be installed, instead of at most one. Fixes deadlock in LowLevelRosterIntegration test because IoTProvisioningManager's SubscribeListener would not come up with a decission.
This commit is contained in:
parent
5b137616bb
commit
f1e24e2273
3 changed files with 50 additions and 21 deletions
|
@ -151,7 +151,7 @@ public final class IoTProvisioningManager extends Manager {
|
|||
});
|
||||
|
||||
roster = Roster.getInstanceFor(connection);
|
||||
roster.setSubscribeListener(new SubscribeListener() {
|
||||
roster.addSubscribeListener(new SubscribeListener() {
|
||||
@Override
|
||||
public SubscribeAnswer processSubscribe(Jid from, Presence subscribeRequest) {
|
||||
// First check if the subscription request comes from a known registry and accept the request if so.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue