mirror of
https://github.com/overte-org/overte.git
synced 2025-08-15 11:45:11 +02:00
open packets for write with ReadWrite
This commit is contained in:
parent
000232a55d
commit
6fa17dafff
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ std::unique_ptr<NLPacket> NLPacket::create(PacketType::Value type, qint64 size)
|
|||
packet = std::unique_ptr<NLPacket>(new NLPacket(type, size));
|
||||
}
|
||||
|
||||
packet->open(QIODevice::WriteOnly);
|
||||
packet->open(QIODevice::ReadWrite);
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ qint64 Packet::maxPayloadSize(PacketType::Value type) {
|
|||
std::unique_ptr<Packet> Packet::create(PacketType::Value type, qint64 size) {
|
||||
auto packet = std::unique_ptr<Packet>(new Packet(type, size));
|
||||
|
||||
packet->open(QIODevice::WriteOnly);
|
||||
packet->open(QIODevice::ReadWrite);
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue