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

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

View file

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