diff options
author | George Politis <gp@jitsi.org> | 2016-02-29 23:59:33 +0000 |
---|---|---|
committer | George Politis <gp@jitsi.org> | 2016-03-01 00:01:05 +0000 |
commit | 2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48 (patch) | |
tree | b229cd1498aca16a945af59dd2a3160d876d0eb2 /src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java | |
parent | 86edf04583cd3642c3778d43f318702dc6ddf6d2 (diff) | |
download | jitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.zip jitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.tar.gz jitsi-2d83b56d5e7e5ed945344f6e0f7b96e537bd0c48.tar.bz2 |
EvictingQueue.remainingSize() is not available in Guava 15.
Diffstat (limited to 'src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java | 2 |
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."); } |