Commit 2778db9b authored by Dave Cridland's avatar Dave Cridland

Merge pull request #182 from sco0ter/of874

Revert fix for OF-874 because it introduced a critical regression.
parents 238c4138 c677c99b
......@@ -88,7 +88,7 @@ import org.xmpp.packet.Presence;
*
* @author Derek DeMoro
*/
public class SessionManager extends BasicModule implements ClusterEventListener, ServerItemsProvider, DiscoInfoProvider, DiscoItemsProvider {
public class SessionManager extends BasicModule implements ClusterEventListener/*, ServerItemsProvider, DiscoInfoProvider, DiscoItemsProvider */{
private static final Logger Log = LoggerFactory.getLogger(SessionManager.class);
......@@ -1171,7 +1171,7 @@ public class SessionManager extends BasicModule implements ClusterEventListener,
conflictLimit = limit;
JiveGlobals.setProperty("xmpp.session.conflict-limit", Integer.toString(conflictLimit));
}
/*
@Override
public Iterator<DiscoServerItem> getItems() {
return Arrays.asList(new DiscoServerItem(serverAddress, null, null, null, this, this)).iterator();
......@@ -1215,7 +1215,7 @@ public class SessionManager extends BasicModule implements ClusterEventListener,
return Collections.emptyIterator();
}
}
*/
private class ClientSessionListener implements ConnectionCloseListener {
/**
* Handle a session that just closed.
......@@ -1374,7 +1374,7 @@ public class SessionManager extends BasicModule implements ClusterEventListener,
sessionInfoCache = CacheFactory.createCache(C2S_INFO_CACHE_NAME);
// Listen to cluster events
ClusterManager.addListener(this);
server.getIQDiscoItemsHandler().addServerItemsProvider(this);
//server.getIQDiscoItemsHandler().addServerItemsProvider(this);
}
......
......@@ -540,6 +540,7 @@ public class XMPPServer {
loadModule(PrivateStorage.class.getName());
// Load core modules
loadModule(PresenceManagerImpl.class.getName());
loadModule(SessionManager.class.getName());
loadModule(PacketRouterImpl.class.getName());
loadModule(IQRouter.class.getName());
loadModule(MessageRouter.class.getName());
......@@ -579,8 +580,6 @@ public class XMPPServer {
loadModule(PubSubModule.class.getName());
loadModule(IQDiscoInfoHandler.class.getName());
loadModule(IQDiscoItemsHandler.class.getName());
// SessionManager registers to IQDiscoItemsHandler, therefore load it after it.
loadModule(SessionManager.class.getName());
loadModule(UpdateManager.class.getName());
loadModule(FlashCrossDomainHandler.class.getName());
loadModule(InternalComponentManager.class.getName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment