1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 22:32:06 +01:00

Renamed variable.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2357 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-08-09 21:47:00 +00:00 committed by mtucker
parent 5eb9146cb8
commit 7877a29af0

View file

@ -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