Issue #2683 - FrameFlusher.toString() isn't thread safe
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
6b335877d9
commit
33c497a883
|
@ -333,11 +333,15 @@ public class FrameFlusher extends IteratingCallback
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
int aggSize = -1;
|
||||||
|
ByteBuffer agg = aggregate;
|
||||||
|
if (agg != null)
|
||||||
|
aggSize = agg.position();
|
||||||
return String.format("%s@%x[queueSize=%d,aggregateSize=%d,terminated=%s]",
|
return String.format("%s@%x[queueSize=%d,aggregateSize=%d,terminated=%s]",
|
||||||
getClass().getSimpleName(),
|
getClass().getSimpleName(),
|
||||||
hashCode(),
|
hashCode(),
|
||||||
getQueueSize(),
|
getQueueSize(),
|
||||||
aggregate == null ? 0 : aggregate.position(),
|
aggSize,
|
||||||
terminated);
|
terminated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue