mirror of
https://github.com/moparisthebest/minetest
synced 2025-01-10 21:28:02 -05:00
Fix bug only half of unreliable queue handled per step in worst case
This commit is contained in:
parent
9b978db0c2
commit
3f0ee5d680
@ -1843,8 +1843,9 @@ void ConnectionSendThread::sendPackets(float dtime)
|
|||||||
<< m_outgoing_queue.size() << " pkts)" << std::endl);
|
<< m_outgoing_queue.size() << " pkts)" << std::endl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int initial_queuesize = m_outgoing_queue.size();
|
||||||
/* send non reliable packets*/
|
/* send non reliable packets*/
|
||||||
for(unsigned int i=0;i < m_outgoing_queue.size();i++) {
|
for(unsigned int i=0;i < initial_queuesize;i++) {
|
||||||
OutgoingPacket packet = m_outgoing_queue.pop_front();
|
OutgoingPacket packet = m_outgoing_queue.pop_front();
|
||||||
|
|
||||||
assert(!packet.reliable &&
|
assert(!packet.reliable &&
|
||||||
|
Loading…
Reference in New Issue
Block a user