summaryrefslogtreecommitdiff
path: root/lib/buffer_queue_circ.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-12-23 19:14:52 -0800
committerJosh Blum2012-12-23 19:14:52 -0800
commitbda4cffcec1043f2862f4f3787133eca23051a1e (patch)
tree54c2324eeb39aa0b7264efc4714f58dc834b00dd /lib/buffer_queue_circ.cpp
parenta6709912308c428cec6a136af90df125143c17f5 (diff)
downloadsandhi-bda4cffcec1043f2862f4f3787133eca23051a1e.tar.gz
sandhi-bda4cffcec1043f2862f4f3787133eca23051a1e.tar.bz2
sandhi-bda4cffcec1043f2862f4f3787133eca23051a1e.zip
create a new token for the downsteam message
Diffstat (limited to 'lib/buffer_queue_circ.cpp')
-rw-r--r--lib/buffer_queue_circ.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/buffer_queue_circ.cpp b/lib/buffer_queue_circ.cpp
index 336f17c..61cba1f 100644
--- a/lib/buffer_queue_circ.cpp
+++ b/lib/buffer_queue_circ.cpp
@@ -120,6 +120,7 @@ void BufferQueueCirc::push(const SBuffer &buff)
//is it my buffer? otherwise dont keep it
if (buff->config.token.lock() != _token) return;
+ ASSERT(buff.get_user_index() < _returned_buffers.size());
_returned_buffers[buff.get_user_index()] = buff;
//ack starting at the expected index and up