From 2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48 Mon Sep 17 00:00:00 2001 From: George Politis Date: Mon, 29 Feb 2016 23:59:33 +0000 Subject: EvictingQueue.remainingSize() is not available in Guava 15. --- .../sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java') 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."); } -- cgit v1.1