aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorGeorge Politis <gp@jitsi.org>2016-02-29 23:59:33 +0000
committerGeorge Politis <gp@jitsi.org>2016-03-01 00:01:05 +0000
commit2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48 (patch)
treeb229cd1498aca16a945af59dd2a3160d876d0eb2 /src/net
parent86edf04583cd3642c3778d43f318702dc6ddf6d2 (diff)
downloadjitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.zip
jitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.tar.gz
jitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.tar.bz2
EvictingQueue.remainingSize() is not available in Guava 15.
Diffstat (limited to 'src/net')
-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.");
}