open packets for write with ReadWrite

This commit is contained in:
Stephen Birarda 2015-07-15 18:27:43 -07:00
parent 000232a55d
commit 6fa17dafff
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}