Commit 316c7bc6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Ignore available presences of closed sessions. JM-525

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3318 b35dd754-fafc-0310-a699-88a17e54d16e
parent 42993d63
......@@ -231,6 +231,13 @@ public abstract class SocketReader implements Runnable {
// an available presence show
packet.setShow(null);
}
if (session.getStatus() == Session.STATUS_CLOSED && packet.isAvailable()) {
// Ignore available presence packets sent from a closed session. A closed
// session may have buffered data pending to be processes so we want to ignore
// just Presences of type available
Log.warn("Ignoring available presence packet of closed session: " + packet);
continue;
}
processPresence(packet);
}
else if ("iq".equals(tag)) {
......
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