always work with trimmed messages

Former-commit-id: a2b3236d22cd935c03a13dfe579c411c648c7dfd
This commit is contained in:
guddimon- 2015-12-14 00:15:15 +01:00
parent d5529e86df
commit 45d3572df1

View File

@ -64,8 +64,8 @@ void BoblightClientConnection::readData()
// remove message data from buffer
_receiveBuffer = _receiveBuffer.mid(bytes);
// handle message
handleMessage(message);
// handle trimmed message
handleMessage(message.trimmed());
// drop messages if the buffer is too full
if (_receiveBuffer.size() > 100*1024)