Comments from CR

This commit is contained in:
Brad Davis 2015-07-01 14:55:24 -07:00
parent 1e1f199fdb
commit 1d16d80c0c

View file

@ -40,13 +40,13 @@ bool ReceivedPacketProcessor::process() {
}
preProcess();
QVector<NetworkPacket> currentPackets;
if (!_packets.size()) {
return isStillRunning();
}
lock();
std::swap(currentPackets, _packets);
QVector<NetworkPacket> currentPackets;
currentPackets.swap(_packets);
unlock();
foreach(auto& packet, currentPackets) {