Skip to content
Snippets Groups Projects
Commit db42bcbe authored by Christoph Pohl's avatar Christoph Pohl
Browse files

fix infinitely growing bufferSize

parent de533b2b
No related branches found
No related tags found
No related merge requests found
......@@ -338,7 +338,7 @@ namespace armarx
<< " bytes for messages buffer, but the maximal buffer size is "
<< getMaximalBufferSize();
}
bufferSize = std::max(requiredSpace, getMaximalBufferSize());
bufferSize = std::min(requiredSpace, getMaximalBufferSize());
buffer.resize(bufferSize, 0);
requiredAdditionalBufferSpace = 0;
messagesLost = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment