1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-01 18:52:08 +01:00

Put ChatStateManager in INSTANCES in getInstanceFor()

like it is done everywhere else.
This commit is contained in:
Florian Schmaus 2018-03-22 17:08:23 +01:00
parent d6cc291252
commit a9bf2a3504

View file

@ -90,6 +90,7 @@ public final class ChatStateManager extends Manager {
ChatStateManager manager = INSTANCES.get(connection); ChatStateManager manager = INSTANCES.get(connection);
if (manager == null) { if (manager == null) {
manager = new ChatStateManager(connection); manager = new ChatStateManager(connection);
INSTANCES.put(connection, manager);
} }
return manager; return manager;
} }
@ -152,7 +153,6 @@ public final class ChatStateManager extends Manager {
}, INCOMING_CHAT_STATE_FILTER); }, INCOMING_CHAT_STATE_FILTER);
ServiceDiscoveryManager.getInstanceFor(connection).addFeature(NAMESPACE); ServiceDiscoveryManager.getInstanceFor(connection).addFeature(NAMESPACE);
INSTANCES.put(connection, this);
} }
/** /**