Skip to content

Commit

Permalink
fix for 202 point 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Sep 29, 2015
1 parent ee3c88b commit 71e80a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/Null.cpp
Expand Up @@ -47,6 +47,14 @@ vz::api::Null::~Null()

void vz::api::Null::send()
{
// we need to mark all elements as transmitted/deleted otherwise the Channel::Buffer keeps on growing
Buffer::Ptr buf = channel()->buffer();
buf->lock();
for ( Buffer::iterator it = buf->begin(); it != buf->end(); it++) {
it->mark_delete();
}
buf->unlock();
buf->clean();
}

void vz::api::Null::register_device()
Expand Down

0 comments on commit 71e80a1

Please sign in to comment.