Commit e640fd31 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Ignore packets of type ERROR.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/branches/jive_messenger_2_1_branch@1553 b35dd754-fafc-0310-a699-88a17e54d16e
parent dcf7b425
...@@ -284,6 +284,10 @@ public class MUCUserImpl implements MUCUser { ...@@ -284,6 +284,10 @@ public class MUCUserImpl implements MUCUser {
} }
public void process(IQ packet) { public void process(IQ packet) {
// Ignore IQs of type ERROR sent to a room
if (IQ.Type.error == packet.getType()) {
return;
}
lastPacketTime = System.currentTimeMillis(); lastPacketTime = System.currentTimeMillis();
JID recipient = packet.getTo(); JID recipient = packet.getTo();
String group = recipient.getNode(); String group = recipient.getNode();
...@@ -335,6 +339,10 @@ public class MUCUserImpl implements MUCUser { ...@@ -335,6 +339,10 @@ public class MUCUserImpl implements MUCUser {
} }
public void process(Presence packet) { public void process(Presence packet) {
// Ignore presences of type ERROR sent to a room
if (Presence.Type.error == packet.getType()) {
return;
}
lastPacketTime = System.currentTimeMillis(); lastPacketTime = System.currentTimeMillis();
JID recipient = packet.getTo(); JID recipient = packet.getTo();
String group = recipient.getNode(); String group = recipient.getNode();
......
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