bugfix: line_buffer
This commit is contained in:
parent
e2c4eb6185
commit
ea5ab9e28b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ private:
|
||||||
_discardLine = true;
|
_discardLine = true;
|
||||||
_consumedTo = _buffer.begin();
|
_consumedTo = _buffer.begin();
|
||||||
_bufferedTo = _buffer.begin();
|
_bufferedTo = _buffer.begin();
|
||||||
} else if (bytesRemaining > 0 && _consumedTo > _buffer.begin()) {
|
} else {
|
||||||
// move the last partial message to the front of the buffer, so a full-sized
|
// move the last partial message to the front of the buffer, so a full-sized
|
||||||
// message will fit
|
// message will fit
|
||||||
std::copy(_consumedTo, _bufferedTo, _buffer.begin());
|
std::copy(_consumedTo, _bufferedTo, _buffer.begin());
|
||||||
|
|
Loading…
Reference in a new issue