From 68d489ef79fed9fab459c2f7f3f44a1856973944 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Tue, 8 Apr 2003 21:22:09 +0000 Subject: [PATCH] Fix from John for bad packet processing logic. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1869 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 365bb89d3..f3ea56a31 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -311,7 +311,7 @@ class PacketReader { // Remove all null values from the collectors list. synchronized (collectors) { - for (int i=collectors.size()-1; i<=0; i--) { + for (int i=collectors.size()-1; i>=0; i--) { if (collectors.get(i) == null) { collectors.remove(i); }