Use notifyAll() (Smack-130)

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2288 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-04-07 23:49:00 +00:00 committed by mtucker
parent e05235984b
commit 147288ed74
1 changed files with 2 additions and 2 deletions

View File

@ -120,13 +120,13 @@ class PacketWriter {
if (!done) {
synchronized(queue) {
queue.addFirst(packet);
queue.notify();
queue.notifyAll();
}
// Add the sent packet to the list of sent packets
// The PacketWriterListeners will be notified of the new packet
synchronized(sentPackets) {
sentPackets.addFirst(packet);
sentPackets.notify();
sentPackets.notifyAll();
}
}
}