mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
potential fix to crash on windows startup
This commit is contained in:
parent
9aaaae6759
commit
628046f13c
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ bool ReceivedPacketProcessor::process() {
|
|||
NetworkPacket& packet = _packets.front(); // get the oldest packet
|
||||
NetworkPacket temporary = packet; // make a copy of the packet in case the vector is resized on us
|
||||
_packets.erase(_packets.begin()); // remove the oldest packet
|
||||
_nodePacketCounts[temporary.getNode()->getUUID()]--;
|
||||
if (!temporary.getNode().isNull()) {
|
||||
_nodePacketCounts[temporary.getNode()->getUUID()]--;
|
||||
}
|
||||
unlock(); // let others add to the packets
|
||||
processPacket(temporary.getNode(), temporary.getByteArray()); // process our temporary copy
|
||||
midProcess();
|
||||
|
|
Loading…
Reference in a new issue