From 7877a29af07228254d8986b30182956fb1a1eafc Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Mon, 9 Aug 2004 21:47:00 +0000 Subject: [PATCH] Renamed variable. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2357 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketWriter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/org/jivesoftware/smack/PacketWriter.java b/source/org/jivesoftware/smack/PacketWriter.java index ca7c08152..415c24513 100644 --- a/source/org/jivesoftware/smack/PacketWriter.java +++ b/source/org/jivesoftware/smack/PacketWriter.java @@ -72,7 +72,7 @@ class PacketWriter { private boolean done = false; private List listeners = new ArrayList(); - private boolean listenersUpdated = false; + private boolean listenersDeleted = false; private Thread listenerThread; private LinkedList sentPackets = new LinkedList(); @@ -159,7 +159,7 @@ class PacketWriter { listeners.set(i, null); // Set the flag to indicate that the listener list needs // to be cleaned up. - listenersUpdated = true; + listenersDeleted = true; } } } @@ -284,13 +284,13 @@ class PacketWriter { // removes are done seperately so that the main notification process doesn't // need to synchronize on the list. synchronized (listeners) { - if (listenersUpdated) { + if (listenersDeleted) { for (int i=listeners.size()-1; i>=0; i--) { if (listeners.get(i) == null) { listeners.remove(i); } } - listenersUpdated = false; + listenersDeleted = false; } } // Notify the listeners of the new sent packet