mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 05:03:52 +02:00
Close current packet fix
This commit is contained in:
parent
f6665a4ac6
commit
a34e1d85a5
2 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ std::unique_ptr<Packet> PacketList::createPacketWithExtendedHeader() {
|
|||
}
|
||||
|
||||
void PacketList::closeCurrentPacket(bool shouldSendEmpty) {
|
||||
if (shouldSendEmpty && !_currentPacket) {
|
||||
if (shouldSendEmpty && !_currentPacket && _packets.empty()) {
|
||||
_currentPacket = createPacketWithExtendedHeader();
|
||||
}
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ void UDTTest::sendPacket() {
|
|||
packetList->write(randomPaddedData);
|
||||
}
|
||||
|
||||
packetList->closeCurrentPacket(false);
|
||||
packetList->closeCurrentPacket();
|
||||
|
||||
_totalQueuedBytes += packetList->getDataSize();
|
||||
_totalQueuedPackets += packetList->getNumPackets();
|
||||
|
|
Loading…
Reference in a new issue