mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 08:20:00 +02:00
fix bad assert for payload size
This commit is contained in:
parent
7631af99e0
commit
0b700d690a
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ Packet& Packet::operator=(Packet&& other) {
|
|||
|
||||
void Packet::setPayloadSize(qint64 payloadSize) {
|
||||
if (isWritable()) {
|
||||
Q_ASSERT(payloadSize > _payloadCapacity);
|
||||
Q_ASSERT(payloadSize <= _payloadCapacity);
|
||||
_payloadSize = std::max(payloadSize, _payloadCapacity);
|
||||
} else {
|
||||
qDebug() << "You can not call setPayloadSize for a non-writeable Packet.";
|
||||
|
|
Loading…
Reference in a new issue