1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

returned for loop

This commit is contained in:
dan 2023-03-02 13:52:52 -08:00
parent 6d488f15d4
commit 4354704145

View file

@ -701,9 +701,9 @@ namespace llarp::quic
} }
} }
auto it = strs.begin();
while (!strs.empty() && stream_packets < max_stream_packets) while (!strs.empty() && stream_packets < max_stream_packets)
{
for (auto it = strs.begin(); it != strs.end();)
{ {
log::debug(logcat, "Max stream packets: {}\nCurrent stream packets: {}", max_stream_packets, stream_packets); log::debug(logcat, "Max stream packets: {}\nCurrent stream packets: {}", max_stream_packets, stream_packets);
@ -854,6 +854,7 @@ namespace llarp::quic
return; return;
} }
} }
}
// Now try more with stream id -1 and no data: this takes care of things like initial handshake // Now try more with stream id -1 and no data: this takes care of things like initial handshake
// packets, and also finishes off any partially-filled packet from above. // packets, and also finishes off any partially-filled packet from above.