Use correct field in ServiceDiscoveryManager.getIdentities()

Fixes SMACK-863.
This commit is contained in:
Florian Schmaus 2019-04-09 12:14:12 +02:00
parent 9be498c440
commit 9ad162af6e
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
/** /**
* *
* Copyright 2003-2007 Jive Software, 2018 Florian Schmaus. * Copyright 2003-2007 Jive Software, 2018-2019 Florian Schmaus.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -271,8 +271,8 @@ public final class ServiceDiscoveryManager extends Manager {
*/ */
public Set<DiscoverInfo.Identity> getIdentities() { public Set<DiscoverInfo.Identity> getIdentities() {
Set<Identity> res = new HashSet<>(identities); Set<Identity> res = new HashSet<>(identities);
// Add the default identity that must exist // Add the main identity that must exist
res.add(defaultIdentity); res.add(identity);
return Collections.unmodifiableSet(res); return Collections.unmodifiableSet(res);
} }