mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
always work with trimmed messages
Former-commit-id: a2b3236d22cd935c03a13dfe579c411c648c7dfd
This commit is contained in:
parent
d5529e86df
commit
45d3572df1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user