mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Comments from CR
This commit is contained in:
parent
1e1f199fdb
commit
1d16d80c0c
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue