mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Put ChatStateManager in INSTANCES in getInstanceFor()
like it is done everywhere else.
This commit is contained in:
parent
d6cc291252
commit
a9bf2a3504
1 changed files with 1 additions and 1 deletions
|
@ -90,6 +90,7 @@ public final class ChatStateManager extends Manager {
|
|||
ChatStateManager manager = INSTANCES.get(connection);
|
||||
if (manager == null) {
|
||||
manager = new ChatStateManager(connection);
|
||||
INSTANCES.put(connection, manager);
|
||||
}
|
||||
return manager;
|
||||
}
|
||||
|
@ -152,7 +153,6 @@ public final class ChatStateManager extends Manager {
|
|||
}, INCOMING_CHAT_STATE_FILTER);
|
||||
|
||||
ServiceDiscoveryManager.getInstanceFor(connection).addFeature(NAMESPACE);
|
||||
INSTANCES.put(connection, this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue