Commit 9a58e800 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed problem that prevented Psi clients to connect to the server. JM-162


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@953 b35dd754-fafc-0310-a699-88a17e54d16e
parent f90319c7
......@@ -235,11 +235,11 @@ public class SocketReadThread extends Thread {
}
// Create the correct session based on the sent namespace
if ("jabber:client".equals(xpp.getNamespaceUri(xpp.getDepth()-1))) {
if ("jabber:client".equals(xpp.getNamespace(null))) {
// The connected client is a regular client so create a ClientSession
session = ClientSession.createSession(serverName, reader, connection);
}
else if ("jabber:component:accept".equals(xpp.getNamespaceUri(xpp.getDepth()-1))) {
else if ("jabber:component:accept".equals(xpp.getNamespace(null))) {
// The connected client is a component so create a ComponentSession
session = ComponentSession.createSession(serverName, reader, connection);
}
......
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