1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +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);
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);
}
/**