aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
index 90e95c9..220f36b 100644
--- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
@@ -852,7 +852,7 @@ public class PacketLoggingServiceImpl
*/
public synchronized void queuePacket(Packet packet)
{
- if (pktsToSave.remainingCapacity() == 0)
+ if (EVICTING_QUEUE_MAX_SIZE - pktsToSave.size() == 0)
{
logger.warn("Queue is full, packets are being evicted.");
}