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
1 changed files with 1 additions and 1 deletions

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);
}
/**