mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +01:00
SMACK-460 ServiceDiscoveryManager constructor usage in
connectionCreated() ServiceDiscoveryManager should not use the constructor in connectionCreated(), it may cause duplicate SDMs for the same connection and prevents the interaction with SDM before the connection is established. Instead getInstanceFor() is now used. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_2@13792 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
1ea6159ce4
commit
44c3214539
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ public class ServiceDiscoveryManager {
|
||||||
static {
|
static {
|
||||||
Connection.addConnectionCreationListener(new ConnectionCreationListener() {
|
Connection.addConnectionCreationListener(new ConnectionCreationListener() {
|
||||||
public void connectionCreated(Connection connection) {
|
public void connectionCreated(Connection connection) {
|
||||||
new ServiceDiscoveryManager(connection);
|
getInstanceFor(connection);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
identities.add(new Identity(DEFAULT_IDENTITY_CATEGORY, DEFAULT_IDENTITY_NAME, DEFAULT_IDENTITY_TYPE));
|
identities.add(new Identity(DEFAULT_IDENTITY_CATEGORY, DEFAULT_IDENTITY_NAME, DEFAULT_IDENTITY_TYPE));
|
||||||
|
|
Loading…
Reference in a new issue