mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +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:
parent
5eb9146cb8
commit
7877a29af0
1 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ class PacketWriter {
|
||||||
private boolean done = false;
|
private boolean done = false;
|
||||||
|
|
||||||
private List listeners = new ArrayList();
|
private List listeners = new ArrayList();
|
||||||
private boolean listenersUpdated = false;
|
private boolean listenersDeleted = false;
|
||||||
private Thread listenerThread;
|
private Thread listenerThread;
|
||||||
private LinkedList sentPackets = new LinkedList();
|
private LinkedList sentPackets = new LinkedList();
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class PacketWriter {
|
||||||
listeners.set(i, null);
|
listeners.set(i, null);
|
||||||
// Set the flag to indicate that the listener list needs
|
// Set the flag to indicate that the listener list needs
|
||||||
// to be cleaned up.
|
// 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
|
// removes are done seperately so that the main notification process doesn't
|
||||||
// need to synchronize on the list.
|
// need to synchronize on the list.
|
||||||
synchronized (listeners) {
|
synchronized (listeners) {
|
||||||
if (listenersUpdated) {
|
if (listenersDeleted) {
|
||||||
for (int i=listeners.size()-1; i>=0; i--) {
|
for (int i=listeners.size()-1; i>=0; i--) {
|
||||||
if (listeners.get(i) == null) {
|
if (listeners.get(i) == null) {
|
||||||
listeners.remove(i);
|
listeners.remove(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
listenersUpdated = false;
|
listenersDeleted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Notify the listeners of the new sent packet
|
// Notify the listeners of the new sent packet
|
||||||
|
|
Loading…
Reference in a new issue